twilio_openapi/models/
participant_enum_status.rs1#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
14pub enum ParticipantEnumStatus {
15 #[serde(rename = "queued")]
16 Queued,
17 #[serde(rename = "connecting")]
18 Connecting,
19 #[serde(rename = "ringing")]
20 Ringing,
21 #[serde(rename = "connected")]
22 Connected,
23 #[serde(rename = "complete")]
24 Complete,
25 #[serde(rename = "failed")]
26 Failed,
27
28}
29
30impl ToString for ParticipantEnumStatus {
31 fn to_string(&self) -> String {
32 match self {
33 Self::Queued => String::from("queued"),
34 Self::Connecting => String::from("connecting"),
35 Self::Ringing => String::from("ringing"),
36 Self::Connected => String::from("connected"),
37 Self::Complete => String::from("complete"),
38 Self::Failed => String::from("failed"),
39 }
40 }
41}
42
43impl Default for ParticipantEnumStatus {
44 fn default() -> ParticipantEnumStatus {
45 Self::Queued
46 }
47}
48
49
50
51