pub struct ActiveCall {
pub id: String,
pub direction: CallDirection,
pub line: String,
pub peer: String,
pub started_at: DateTime<Utc>,
pub agent: bool,
pub people: Vec<CallPerson>,
/* private fields */
}Expand description
A call in progress on one of an inbox’s lines, from its room.
Fields§
§id: String§direction: CallDirection§line: StringThe inbox’s line, E.164.
peer: StringThe other party, E.164.
started_at: DateTime<Utc>§agent: boolThe inbox’s agent is on it.
people: Vec<CallPerson>Who is on it from the inbox’s side, one entry per seat.
Implementations§
Source§impl ActiveCall
impl ActiveCall
Sourcepub async fn join(&self) -> Result<PhoneCall>
pub async fn join(&self) -> Result<PhoneCall>
Joins the call: you hear everyone on it, and they hear you.
pub fn from_json( json: &Value, authorization: &CredentialsOrApiKey, ) -> ActiveCall
Trait Implementations§
Auto Trait Implementations§
impl Forget for ActiveCall
impl Freeze for ActiveCall
impl Move for ActiveCall
impl RefUnwindSafe for ActiveCall
impl Send for ActiveCall
impl Sync for ActiveCall
impl Unpin for ActiveCall
impl UnsafeUnpin for ActiveCall
impl UnwindSafe for ActiveCall
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