Expand description
Official Rust client for the Sendry email API.
use sendry::{Sendry, SendEmail};
let client = Sendry::new(std::env::var("SENDRY_API_KEY")?);
let resp = client.emails().send(SendEmail {
from: "hello@yourdomain.com".into(),
to: vec!["user@example.com".into()],
subject: "Welcome".into(),
html: Some("<p>Hi.</p>".into()),
..Default::default()
}).await?;
println!("sent: {}", resp.id);Structs§
- AbSplit
- A/B split definition.
- AddAutomation
Step - Parameters for
AutomationSteps::add. - AddSuppression
- Parameters for
Suppression::add. - Affected
Component - One affected component.
- Analytics
- Analytics resource handle.
- Analytics
Bucket - Per-bucket counts.
- Analytics
Params - Stats query parameters.
- Analytics
Response - Response from
Analytics::stats. - Analytics
Summary - Summary totals + rates.
- ApiKey
- API key record (key value is masked).
- ApiKey
Created - Response from
ApiKeys::create. Includes the full plaintext key — store it now. - ApiKeys
- API keys resource handle.
- Assign
Ip - Parameters for
DedicatedIps::assign. - Audience
- Audience record returned by the API.
- Audience
Params - Parameters for creating an audience.
- Audiences
- Audiences resource handle.
- Authentication
Status - Authentication setup.
- Automation
- Automation record.
- Automation
Run - One automation run.
- Automation
RunStep - One step execution within a run.
- Automation
RunStep List - Run steps list response.
- Automation
Runs - Automation runs sub-resource handle.
- Automation
Step - One step record.
- Automation
Step List - Steps list response.
- Automation
Steps - Automation steps sub-resource handle.
- Automations
- Automations resource handle.
- Batch
Email - Parameters for
Emails::send_batch. - Batch
Email Item - One item in a batch send.
- Batch
Response - Response from
Emails::send_batch. - Batch
Unsubscribe - Parameters for
Unsubscribes::create_batch. - Batch
Unsubscribe Response - Response from
Unsubscribes::create_batch. - Benchmark
Bucket - Per-day benchmark bucket.
- Benchmark
Params - Benchmark query parameters.
- Benchmark
Response - Benchmark response.
- Billing
- Billing resource handle.
- Billing
Plan - Plan info.
- Billing
Usage - Period usage.
- Blocklist
Alert Item - One blocklist alert.
- Blocklist
Check Body - Body for
Deliverability::run_blocklist_check. - Blocklist
Check Item - One blocklist check.
- Blocklist
Query - Blocklist query parameters.
- Blocklist
Response - Blocklist response.
- Blocklist
Summary - Summary counts.
- Branch
Condition - Branch condition.
- Branding
Settings - Branding settings.
- Breakdown
Item - One breakdown row.
- Breakdown
Params - Breakdown query parameters.
- Breakdown
Response - Breakdown response.
- Campaign
- Campaign record returned by the API.
- Campaign
Params - Parameters for creating a campaign.
- Campaigns
- Campaigns resource handle.
- Cancel
Email Response - Response from
Emails::cancel. - Checkout
Session - Stripe Checkout session.
- Cohort
Bucket - One cohort bucket.
- Cohort
Params - Cohort query parameters.
- Cohort
Response - Cohort response.
- Comparison
Changes - Period-over-period change percentages and deltas.
- Comparison
Period Stats - Comparison period stats.
- Comparison
Response - Comparison response.
- Contact
- Contact record returned by the API.
- Contact
Params - Parameters for upserting a contact.
- Contacts
- Contacts resource handle.
- Create
ApiKey - Parameters for creating an API key.
- Create
Automation - Parameters for
Automations::create. - Create
Automation Run - Parameters for
AutomationRuns::create. - Create
Checkout - Parameters for
Billing::create_checkout. - Create
Portal - Parameters for
Billing::create_portal. - Create
Unsubscribe - Parameters for
Unsubscribes::create. - Dedicated
Ip - Dedicated IP record.
- Dedicated
IpAssignment - One IP assignment record (embedded in
DedicatedIp). - Dedicated
Ips - Dedicated IPs resource handle.
- Delete
Response - Simple deletion acknowledgement returned by many
DELETEendpoints. - Deliverability
- Deliverability resource handle.
- Deliverability
Report - Full deliverability report.
- Deliverability
Report Query - Report query parameters.
- Domain
- Domain record returned by the API.
- Domain
Params - Parameters for creating a domain.
- Domains
- Domains resource handle.
- Single email as returned by
get/list. - Email
Response - Response from
Emails::send. - Emails
- Emails resource handle.
- Events
- Events resource handle.
- Export
Params - Export parameters.
- GetLatency
Params - Parameters for
Status::get_latency. - Inbound
- Inbound resource handle.
- Inbound
Config - Inbound forwarding configuration.
- Inbound
Email - Inbound email record.
- Inbound
Email Attachment - One inbound email attachment.
- Inbox
Placement Estimate - Inbox placement estimate.
- Incident
- One incident.
- Incident
Update - One incident update.
- Ingest
Event - Parameters for
Events::ingest. - Ingested
Event - Ingested event record.
- Invite
Team Member - Parameters for
Team::invite. - IpAssignment
- Assignment record returned by
DedicatedIps::assign. - Latency
Hour Bucket - One hour of latency data.
- Latency
Stats - Latency stats.
- List
Automation Runs - Filters for
AutomationRuns::list. - List
Automations - Filters for
Automations::list. - List
Events - Filters for
Events::list. - List
Team Response - Response from
Team::list. - List
Unsubscribes - Filters for
Unsubscribes::list. - LogEvent
- One log line.
- Logs
Params - Filters for
Analytics::logs. - Notification
Preferences - Notification preferences record.
- Notification
Preferences Resource - Notification preferences resource handle.
- OrgRegion
Settings - Org region settings.
- Organization
- Organisation record.
- Organizations
- Organizations resource handle.
- Page
- Common pagination wrapper returned by every
listendpoint. - Pagination
Params - Cursor pagination query parameters.
- Portal
Session - Stripe Billing Portal session.
- Provision
Dedicated Ip - Parameters for
DedicatedIps::provision. - Region
- One region.
- Region
Analytics Item - One row of region analytics.
- Region
Analytics Params - Parameters for
Regions::get_region_analytics. - Region
Analytics Response - Region analytics response.
- Region
List - Wrapper returned by
Regions::list. - Regions
- Regions resource handle.
- Render
Template - Parameters for
Templates::render. - Render
Template Response - Response from
Templates::render. - Report
Blocklist Status - Blocklist status block.
- Report
Metrics - Report aggregate metrics.
- Report
Period - Report period.
- Report
Reputation - Report reputation summary.
- Reputation
Current - Current reputation.
- Reputation
Domain - Per-domain reputation.
- Reputation
Factors - Reputation factors.
- Reputation
History Query - Reputation history query parameters.
- Reputation
Query - Reputation query parameters.
- Reputation
Response - Reputation response.
- Reputation
Snapshot - One reputation snapshot.
- Send
Email - Parameters for
Emails::send. - Send
Marketing Email - Parameters for
Emails::send_marketing. - Sendry
- Async client for the Sendry API.
- Sendry
Builder - Builder for customising a
Sendryclient. - SlaSummary
- SLA summary.
- Status
- Status resource handle.
- Status
Component - One status component.
- Suppression
- Suppression resource handle.
- Suppression
Entry - One suppression row.
- System
Status - System status snapshot.
- Team
- Team resource handle.
- Team
Member - One member or pending invite.
- Team
Seats - Seat usage.
- Template
- Template record returned by the API.
- Template
Params - Parameters for creating a template.
- Template
Starter - One starter template.
- Template
Starter List - Wrapper for
Templates::list_starters. - Templates
- Templates resource handle.
- Test
Email - Full test email.
- Test
Email Summary - Test email summary (for list responses).
- Test
Emails - Test emails resource handle.
- Unsubscribe
Entry - One unsubscribe record.
- Unsubscribes
- Unsubscribes resource handle.
- Update
Automation - Parameters for
Automations::update. All fields optional. - Update
Automation Step - Parameters for
AutomationSteps::update. - Update
Branding - Parameters for
Organizations::update_branding. All fields optional. - Update
Domain Region - Parameters for
Regions::set_domain_region. - Update
Inbound Config - Parameters for
Inbound::update_config. - Update
Notification Preferences - Parameters for
NotificationPreferencesResource::update. All fields are optional. - Update
OrgRegion - Parameters for
Regions::update_org_settings. - Update
Organization - Parameters for
Organizations::update. - Update
Team Member Role - Parameters for
Team::update_role. - Update
Template - Parameters for
Templates::update. All fields optional. - Webhook
- Webhook record returned by the API.
- Webhook
Params - Parameters for creating a webhook.
- Webhooks
- Webhooks resource handle.
Enums§
- Automation
Step Config - One step config — discriminated by
typefield. - Error
- All errors this crate can return.
Constants§
- VERSION
- SDK version, set by Cargo at compile time.
Functions§
- verify_
webhook_ signature - Verify a Sendry webhook signature using HMAC-SHA256 with constant-time comparison.