cal-core 0.2.158

Callable core lib
Documentation
use bson::oid::ObjectId;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone, Debug)]
#[serde(rename_all = "camelCase")]
pub struct Region {
    #[serde(rename = "_id")]
    pub id: ObjectId,
    pub name: String,
    pub description: String,
    #[serde(rename = "apiEndpoint")]
    pub api_endpoint: String,
    #[serde(rename = "apiToken")]
    pub api_token: String,
    #[serde(rename = "ringbackURL")]
    pub ringback_url: String,
    #[serde(rename = "voiceServers")]
    pub voice_servers: Vec<VoiceServer>,
}

#[derive(Serialize, Deserialize, Clone, Debug)]
#[serde(rename_all = "camelCase")]
pub struct VoiceServer {
    #[serde(rename = "_id")]
    pub id: String,
    pub name: String,
    #[serde(rename = "privateIP")]
    pub private_ip: String,
    #[serde(rename = "publicIP")]
    pub public_ip: String,
}