whatsapp-cloud-api 0.5.4

Whatsapp Cloud API Rust Client
Documentation
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct MessageResponse {
    pub contacts: Vec<ContactResponse>,
    pub messages: Vec<CreatedMessage>,
    pub messaging_product: String,
}

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct MessageStatusResponse {
    pub success: Option<bool>,
    // TODO: error and otehr attributes
}

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct CreatedMessage {
    pub id: String,
    pub message_status: Option<String>,
}

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct ContactResponse {
    pub input: String,
    pub wa_id: String,
}