pub struct CallRecord {
pub id: String,
pub direction: CallDirection,
pub peer: String,
pub peer_owner: Option<Owner>,
pub line: String,
pub status: String,
pub started_at: DateTime<Utc>,
pub duration: f64,
pub agent: bool,
pub voicemail: bool,
pub recorded: bool,
pub segments: Vec<CallSegment>,
}Expand description
A call on one of the inbox’s lines, with its recording’s timed transcript.
Fields§
§id: String§direction: CallDirection§peer: StringThe other party, E.164.
peer_owner: Option<Owner>When peer is one of the inbox’s owners: who they are.
line: StringThe inbox’s line, E.164.
status: String§started_at: DateTime<Utc>§duration: f64Seconds it was connected.
agent: boolThe inbox’s agent took or placed it.
voicemail: boolA message left on the line, or a call that reached their voicemail.
recorded: boolIts audio can be fetched with recording().
segments: Vec<CallSegment>Implementations§
Source§impl CallRecord
impl CallRecord
pub fn from_json(json: &Value) -> CallRecord
Trait Implementations§
Source§impl Clone for CallRecord
impl Clone for CallRecord
Source§impl Debug for CallRecord
impl Debug for CallRecord
Source§impl PartialEq for CallRecord
impl PartialEq for CallRecord
Source§impl Serialize for CallRecord
impl Serialize for CallRecord
impl StructuralPartialEq for CallRecord
Auto Trait Implementations§
impl Forget for CallRecord
impl Freeze for CallRecordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<CallSegment>: Freeze,
impl Move for CallRecord
impl RefUnwindSafe for CallRecord
impl Send for CallRecord
impl Sync for CallRecord
impl Unpin for CallRecord
impl UnsafeUnpin for CallRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<CallSegment>: UnsafeUnpin,
impl UnwindSafe for CallRecord
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