Expand description
§MailBreeze
Official Rust SDK for MailBreeze - Email Marketing & Transactional Email Platform.
§Quick Start
use mailbreeze::{MailBreeze, SendEmailParams};
#[tokio::main]
async fn main() -> mailbreeze::Result<()> {
let client = MailBreeze::new("your_api_key")?;
// Send an email
let result = client.emails.send(&SendEmailParams {
from: "sender@yourdomain.com".to_string(),
to: vec!["recipient@example.com".to_string()],
subject: Some("Hello from MailBreeze!".to_string()),
html: Some("<h1>Welcome!</h1>".to_string()),
..Default::default()
}).await?;
println!("Email sent with message ID: {}", result.message_id);
// Work with contacts in a specific list
let contacts = client.contacts("list_xxx");
let contact_list = contacts.list(&Default::default()).await?;
Ok(())
}Structs§
- Attachment
- Attachment object
- Attachments
- Attachments API resource
- Batch
Analytics - Analytics for batch verification
- Batch
Results - Categorized batch results (clean, dirty, unknown email lists)
- Batch
Verification Result - Batch verification result
- Cancel
Email Result - Cancel email result
- Client
Config - Configuration for the MailBreeze client
- Contact
- Contact object
- Contacts
- Contacts API resource - scoped to a specific contact list
- Contacts
Response - Paginated list of contacts (API returns {contacts: [], pagination: {}})
- Create
Contact Params - Parameters for creating a contact
- Create
List Params - Parameters for creating a list
- Create
Upload Params - Parameters for creating an upload URL
- Email object (from list/get endpoints)
- Email
List - Paginated list of emails (API returns {emails: [], pagination: {}})
- Email
Stats - Email statistics
- Email
Stats Response - Wrapper for email stats response from API
- Emails
- Emails API resource
- Http
Client - HTTP client for MailBreeze API
- List
- Contact list object
- List
Contacts Params - Parameters for listing contacts
- List
Emails Params - Parameters for listing emails
- List
Lists Params - Parameters for listing lists
- List
Stats - Contact list statistics
- Lists
- Contact lists API resource
- Lists
Response - Paginated list of contact lists
- Mail
Breeze - Main MailBreeze client
- Mail
Breeze Builder - Builder for creating a MailBreeze client with custom configuration
- Pagination
- Pagination information returned with list endpoints
- Send
Email Params - Parameters for sending an email
- Send
Email Result - Result from sending an email
- Suppress
Params - Suppress params for contact suppression
- Update
Contact Params - Parameters for updating a contact
- Update
List Params - Parameters for updating a list
- Upload
Url - Upload URL response
- Verification
- Verification API resource
- Verification
List Item - Verification list item (returned by list endpoint)
- Verification
List Response - Response from verification list endpoint
- Verification
Result - Single email verification result
- Verification
Stats - Verification statistics
Enums§
- Consent
Type - Consent type for NDPR compliance
- Contact
Status - Contact subscription status
- Email
Status - Email delivery status
- Error
- Error types for the MailBreeze SDK
- Suppress
Reason - Reason for suppressing a contact
- Verification
Status - Verification result status