pub struct AnalyticsEvent {Show 34 fields
pub id: String,
pub type: i32,
pub timestamp: Option<Timestamp>,
pub room_id: String,
pub room: Option<Room>,
pub participant_id: String,
pub participant: Option<ParticipantInfo>,
pub track_id: String,
pub track: Option<TrackInfo>,
pub analytics_key: String,
pub client_info: Option<ClientInfo>,
pub client_meta: Option<AnalyticsClientMeta>,
pub egress_id: String,
pub ingress_id: String,
pub max_subscribed_video_quality: i32,
pub publisher: Option<ParticipantInfo>,
pub mime: String,
pub egress: Option<EgressInfo>,
pub ingress: Option<IngressInfo>,
pub error: String,
pub rtp_stats: Option<RtpStats>,
pub video_layer: i32,
pub node_id: String,
pub sip_call_id: String,
pub sip_call: Option<SipCallInfo>,
pub sip_trunk_id: String,
pub sip_inbound_trunk: Option<SipInboundTrunkInfo>,
pub sip_outbound_trunk: Option<SipOutboundTrunkInfo>,
pub sip_dispatch_rule_id: String,
pub sip_dispatch_rule: Option<SipDispatchRuleInfo>,
pub sip_transfer: Option<SipTransferInfo>,
pub report: Option<ReportInfo>,
pub api_call: Option<ApiCallInfo>,
pub webhook: Option<WebhookInfo>,
}Fields§
§id: Stringunique id for this event
type: i32§timestamp: Option<Timestamp>§room_id: String§room: Option<Room>§participant_id: String§participant: Option<ParticipantInfo>§track_id: String§track: Option<TrackInfo>§analytics_key: String§client_info: Option<ClientInfo>§client_meta: Option<AnalyticsClientMeta>§egress_id: String§ingress_id: String§max_subscribed_video_quality: i32§publisher: Option<ParticipantInfo>§mime: String§egress: Option<EgressInfo>§ingress: Option<IngressInfo>§error: String§rtp_stats: Option<RtpStats>§video_layer: i32§node_id: String§sip_call_id: String§sip_call: Option<SipCallInfo>§sip_trunk_id: String§sip_inbound_trunk: Option<SipInboundTrunkInfo>§sip_outbound_trunk: Option<SipOutboundTrunkInfo>§sip_dispatch_rule_id: String§sip_dispatch_rule: Option<SipDispatchRuleInfo>§sip_transfer: Option<SipTransferInfo>§report: Option<ReportInfo>§api_call: Option<ApiCallInfo>§webhook: Option<WebhookInfo>Implementations§
Source§impl AnalyticsEvent
impl AnalyticsEvent
Sourcepub fn type(&self) -> AnalyticsEventType
pub fn type(&self) -> AnalyticsEventType
Returns the enum value of type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_type(&mut self, value: AnalyticsEventType)
pub fn set_type(&mut self, value: AnalyticsEventType)
Sets type to the provided enum value.
Sourcepub fn max_subscribed_video_quality(&self) -> VideoQuality
pub fn max_subscribed_video_quality(&self) -> VideoQuality
Returns the enum value of max_subscribed_video_quality, or the default if the field is set to an invalid enum value.
Sourcepub fn set_max_subscribed_video_quality(&mut self, value: VideoQuality)
pub fn set_max_subscribed_video_quality(&mut self, value: VideoQuality)
Sets max_subscribed_video_quality to the provided enum value.
Trait Implementations§
Source§impl Clone for AnalyticsEvent
impl Clone for AnalyticsEvent
Source§fn clone(&self) -> AnalyticsEvent
fn clone(&self) -> AnalyticsEvent
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 moreSource§impl Debug for AnalyticsEvent
impl Debug for AnalyticsEvent
Source§impl Default for AnalyticsEvent
impl Default for AnalyticsEvent
§impl<'de> Deserialize<'de> for AnalyticsEvent
impl<'de> Deserialize<'de> for AnalyticsEvent
§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
Source§impl Message for AnalyticsEvent
impl Message for AnalyticsEvent
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for AnalyticsEvent
impl PartialEq for AnalyticsEvent
Source§fn eq(&self, other: &AnalyticsEvent) -> bool
fn eq(&self, other: &AnalyticsEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.§impl Serialize for AnalyticsEvent
impl Serialize for AnalyticsEvent
impl StructuralPartialEq for AnalyticsEvent
Auto Trait Implementations§
impl Freeze for AnalyticsEvent
impl RefUnwindSafe for AnalyticsEvent
impl Send for AnalyticsEvent
impl Sync for AnalyticsEvent
impl Unpin for AnalyticsEvent
impl UnsafeUnpin for AnalyticsEvent
impl UnwindSafe for AnalyticsEvent
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