Skip to main content

Crate brevo_rust

Crate brevo_rust 

Source
Expand description

§Brevo API SDK

The official Rust SDK for the Brevo API.

§Getting Started

use brevo_rust::prelude::*;

#[tokio::main]
async fn main() {
    let config = ClientConfig {
        api_key: Some("<value>".to_string()),
        ..Default::default()
    };
    let client = BrevoClient::new(config).expect("Failed to build client");
    client.account.get_account(None).await;
}

§Modules

  • api - Core API types and models
  • client - Client implementations
  • config - Configuration options
  • core - Core utilities and infrastructure
  • error - Error types and handling
  • prelude - Common imports for convenience

Re-exports§

pub use error::ApiError;
pub use error::BuildError;
pub use api::*;
pub use client::*;
pub use config::*;
pub use core::*;
pub use environment::*;

Modules§

api
API client and types for the Brevo API
client
config
core
Core client infrastructure
environment
error
prelude
Prelude module for convenient imports