millionsend 0.4.0

Official Rust SDK for MillionSend — a self-hostable, Resend-compatible email API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::sync::Arc;

use crate::error::Result;
use crate::http::Config;
use crate::types::DeliverabilityReport;

/// Account-level deliverability score over the trailing window.
#[derive(Clone)]
pub struct Deliverability(pub(crate) Arc<Config>);

impl Deliverability {
    /// `GET /deliverability`
    pub async fn get(&self) -> Result<DeliverabilityReport> {
        self.0.get(&["deliverability"], &[]).await
    }
}