Skip to main content

Crate sevk

Crate sevk 

Source
Expand description

§Sevk SDK for Rust

Official Rust SDK for Sevk - Email Marketing Platform

§Example

use sevk::Sevk;

#[tokio::main]
async fn main() -> Result<(), sevk::Error> {
    let client = Sevk::new("sevk_your_api_key");

    // List contacts
    let contacts = client.contacts().list(None).await?;
    println!("Total contacts: {}", contacts.total);

    // Create a contact
    let contact = client.contacts().create("user@example.com", None).await?;
    println!("Created contact: {}", contact.id);

    Ok(())
}

Re-exports§

pub use client::Client;
pub use client::SevkOptions;
pub use error::Error;
pub use markup::generate_email_from_markup;
pub use markup::EmailHeadSettings;

Modules§

client
HTTP client for the Sevk API
error
Error types for the Sevk SDK
markup
Markup renderer for converting Sevk markup to HTML email
resources
API Resources for the Sevk SDK
types
Type definitions for the Sevk SDK

Structs§

EmailLimitEntry
Email limit entry
EmailLimitsData
Email limits data
EmailStatsData
Email statistics data
ProjectEmailLimits
Project email limits
Sevk
Main entry point for the Sevk SDK
Usage
Project usage and limits data
UsageCount
Resource counts