pub struct Call {
pub agent: Option<String>,
pub from: Option<String>,
pub id: Option<String>,
pub org: Option<String>,
pub status: Option<String>,
pub to: Option<String>,
}Fields§
§agent: Option<String>Agent names the Hanzo assistant handling the call. Set means the call was answered by that assistant rather than connected to a person.
from: Option<String>From is the calling number in E.164. It must be one this org holds: a carrier refuses an origination from a number nobody proved they own.
id: Option<String>ID is the carrier’s handle for the call — what a hangup or a lookup names.
org: Option<String>Org is the tenant the call was placed for or received by.
status: Option<String>Status is where the call is: "queued", "ringing", "answered", "completed" or "failed". Only the last two are terminal.
to: Option<String>To is the called number in E.164.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Call
impl<'de> Deserialize<'de> for Call
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Call
Auto Trait Implementations§
impl Freeze for Call
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
impl UnwindSafe for Call
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more