asterisk-rs-ari 0.7.3

Async Rust client for the Asterisk REST Interface (ARI)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! shared protocol types for REST-over-WebSocket communication.

/// REST request envelope sent over websocket
#[derive(serde::Serialize)]
pub(crate) struct WsRestRequest {
    #[serde(rename = "type")]
    pub type_field: &'static str,
    pub request_id: String,
    pub method: String,
    pub uri: String,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub content_type: Option<String>,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub message_body: Option<String>,
}