Skip to main content

Crate usesend_api

Crate usesend_api 

Source
Expand description

Low-level API client for the useSend email service.

This crate provides typed request/response models and a raw HTTP client for every useSend API endpoint. For a higher-level, more ergonomic interface, see the usesend crate.

§Quick Start

use usesend_api::UseSendApiClient;

let client = UseSendApiClient::new("us_api_key");
let domains = client.domains.list().await?;
println!("Found {} domains", domains.len());

Re-exports§

pub use services::CampaignsSvc;
pub use services::ContactBooksSvc;
pub use services::ContactsSvc;
pub use services::DomainsSvc;
pub use services::EmailsSvc;

Modules§

services
types

Structs§

Config
Shared configuration for all API services.
RetryOptions
Options for retrying rate-limited requests.
UseSendApiClient
Low-level API client for the useSend email service.

Enums§

ApiError

Functions§

send_with_retry
Retry a future-producing closure on ApiError::RateLimit.

Type Aliases§

ApiResult