#[non_exhaustive]pub struct SessionSnapshot {Show 17 fields
pub channel_name: Option<String>,
pub channel_state: Option<ChannelState>,
pub call_state: Option<CallState>,
pub initial_context: Option<String>,
pub initial_destination: Option<String>,
pub dialplan_context: Option<String>,
pub dialplan_from: Option<String>,
pub dialplan_to: Option<String>,
pub call_direction: Option<CallDirection>,
pub caller_id_number: Option<String>,
pub caller_id_name: Option<String>,
pub destination_number: Option<String>,
pub hangup_cause: Option<HangupCause>,
pub answered_at: Option<String>,
pub other_leg_uuid: Option<String>,
pub conference: Option<ConferenceMembership>,
pub media: SessionMedia,
}Expand description
Immutable point-in-time copy of a session’s state, attached to each [EnrichedEntry].
Does not include variables to keep snapshots lightweight — access the full
variable map via [SessionTracker::sessions()].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.channel_name: Option<String>§channel_state: Option<ChannelState>§call_state: Option<CallState>§initial_context: Option<String>§initial_destination: Option<String>§dialplan_context: Option<String>§dialplan_from: Option<String>§dialplan_to: Option<String>§call_direction: Option<CallDirection>§caller_id_number: Option<String>§caller_id_name: Option<String>§destination_number: Option<String>§hangup_cause: Option<HangupCause>§answered_at: Option<String>§other_leg_uuid: Option<String>§conference: Option<ConferenceMembership>§media: SessionMediaTrait Implementations§
Source§impl Clone for SessionSnapshot
impl Clone for SessionSnapshot
Source§fn clone(&self) -> SessionSnapshot
fn clone(&self) -> SessionSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionSnapshot
impl RefUnwindSafe for SessionSnapshot
impl Send for SessionSnapshot
impl Sync for SessionSnapshot
impl Unpin for SessionSnapshot
impl UnsafeUnpin for SessionSnapshot
impl UnwindSafe for SessionSnapshot
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