#[non_exhaustive]pub struct LiveServerEvent {
pub type_: String,
pub event_id: Option<String>,
pub session: Option<LiveSessionConfig>,
pub session_id: Option<String>,
pub delegation_id: Option<Option<String>>,
pub trigger_id: Option<Option<String>>,
pub source_event_type: Option<String>,
pub source_event_id: Option<String>,
pub event: Option<LiveDelegatedEvent>,
pub usage: Option<LiveSessionUsage>,
pub rest: Rest,
}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.type_: String§event_id: Option<String>§session: Option<LiveSessionConfig>§session_id: Option<String>§delegation_id: Option<Option<String>>§trigger_id: Option<Option<String>>§source_event_type: Option<String>§source_event_id: Option<String>§event: Option<LiveDelegatedEvent>§usage: Option<LiveSessionUsage>§rest: RestImplementations§
Source§impl LiveServerEvent
impl LiveServerEvent
Sourcepub fn builder(type_: String) -> LiveServerEventBuilder
pub fn builder(type_: String) -> LiveServerEventBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for LiveServerEvent
impl Clone for LiveServerEvent
Source§impl Debug for LiveServerEvent
impl Debug for LiveServerEvent
Source§impl DeclaredFields for LiveServerEvent
impl DeclaredFields for LiveServerEvent
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for LiveServerEvent
impl<'de> Deserialize<'de> for LiveServerEvent
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
Source§impl PartialEq for LiveServerEvent
impl PartialEq for LiveServerEvent
Source§impl Serialize for LiveServerEvent
impl Serialize for LiveServerEvent
impl StructuralPartialEq for LiveServerEvent
Auto Trait Implementations§
impl Freeze for LiveServerEvent
impl RefUnwindSafe for LiveServerEvent
impl Send for LiveServerEvent
impl Sync for LiveServerEvent
impl Unpin for LiveServerEvent
impl UnsafeUnpin for LiveServerEvent
impl UnwindSafe for LiveServerEvent
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