senviok 0.1.0

Async Rust client for the Senviok messaging API (email, SMS, WhatsApp).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize)]
pub struct CreateSuppressionRequest {
    pub email: String,
    pub reason: String,
}

#[derive(Debug, Deserialize, Clone, PartialEq, Eq)]
#[serde(rename_all = "camelCase")]
pub struct Suppression {
    pub id: String,
    pub email: String,
    pub reason: String,
    pub created_at: String,
}