uni-sdk 0.3.0

The official Unimatrix SDK for Rust
Documentation
//! Official Rust SDK for the Unimatrix HTTP API.
//!
//! [`UniClient`] provides typed access to SMS messages and OTP verification.
//! Credentials can be supplied explicitly or loaded from `UNIMTX_ACCESS_KEY_ID`
//! and `UNIMTX_ACCESS_KEY_SECRET` with [`UniClient::from_env`].

#![deny(missing_docs, rustdoc::broken_intra_doc_links)]

mod client;
mod error;
mod models;
mod services;
mod signer;

#[cfg(feature = "blocking")]
pub mod blocking;

pub use client::{UniClient, UniClientBuilder, DEFAULT_ENDPOINT, DEFAULT_SIGNING_ALGORITHM};
pub use error::{Result, UniError};
pub use models::*;
pub use services::{MessageService, OtpService};

/// Version of this SDK package.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

/// User agent sent with API requests.
pub const USER_AGENT: &str = concat!("uni-rust-sdk/", env!("CARGO_PKG_VERSION"));