{"id":18473229,"url":"https://github.com/pastjean/postmark-rs","last_synced_at":"2025-04-09T11:12:45.938Z","repository":{"id":41959620,"uuid":"399823040","full_name":"pastjean/postmark-rs","owner":"pastjean","description":"Postmark client for rust","archived":false,"fork":false,"pushed_at":"2025-03-02T21:09:02.000Z","size":89,"stargazers_count":14,"open_issues_count":1,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T10:12:08.847Z","etag":null,"topics":["email","postmark","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/postmark","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pastjean.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-25T13:09:05.000Z","updated_at":"2025-03-05T17:05:24.000Z","dependencies_parsed_at":"2023-11-21T16:43:59.588Z","dependency_job_id":"9670a458-832b-4632-9d28-718d7920d02e","html_url":"https://github.com/pastjean/postmark-rs","commit_stats":{"total_commits":65,"total_committers":9,"mean_commits":7.222222222222222,"dds":"0.27692307692307694","last_synced_commit":"a869950e080cddf3f0302842f424f3afd7fda697"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pastjean%2Fpostmark-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pastjean%2Fpostmark-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pastjean%2Fpostmark-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pastjean%2Fpostmark-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pastjean","download_url":"https://codeload.github.com/pastjean/postmark-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247909192,"owners_count":21016479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","postmark","rust"],"created_at":"2024-11-06T10:24:08.511Z","updated_at":"2025-04-09T11:12:45.918Z","avatar_url":"https://github.com/pastjean.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postmark\n\n[![ci](https://github.com/pastjean/postmark-rs/actions/workflows/ci.yml/badge.svg)](https://github.com/pastjean/postmark-rs/actions/workflows/ci.yml)\n[![crates.io](https://img.shields.io/crates/v/postmark.svg)](https://crates.io/crates/postmark)\n[![Documentation](https://docs.rs/postmark/badge.svg)](https://docs.rs/postmark)\n[![License](https://img.shields.io/crates/l/postmark.svg)](https://github.com/pastjean/postmark-rust#license)\n\nA rust library to query Postmark API.\n\n# Usage\n\nAdd the crate dependency to your Cargo.toml:\n\n```toml\n[dependencies]\npostmark = \"x.y.z\"\n```\n\nAnd use it, see documentation at: https://docs.rs/postmark.\n\n```rust\nuse postmark::api::email::SendEmailRequest;\nuse postmark::api::Body;\nuse postmark::reqwest::PostmarkClient;\nuse postmark::Query;\n\nasync fn send_email(){\n  let client = PostmarkClient::builder()\n   .server_token(\"\u003csometoken\u003e\")\n   .build();\n\n  let req = SendEmailRequest::builder()\n    .from(\"me@example.com\")\n    .to(\"you@example.com\")\n    .body(Body::text(\"it's me, Mario!\".to_string()))\n    .build();\n  let resp = req.execute(\u0026client).await;\n}\n```\n\n# Releasing a new version\n\nPrerequisite:\n\n```sh\ncargo install cargo-release\n```\n\nOn Release:\n\n```sh\ncargo release --dry-run\n# check it does the good thing\ncargo release\n```\n\n# Thanks\n\nThis crate is heavily inspired by the article [\"Designing Rust bindings for REST APIs](https://plume.benboeckel.net/~/JustAnotherBlog/designing-rust-bindings-for-rest-ap-is) by Ben Boeckel.\n\n# License\n\npostmark is distributed under the terms of both the MIT license and the Apache License (Version 2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpastjean%2Fpostmark-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpastjean%2Fpostmark-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpastjean%2Fpostmark-rs/lists"}