pub struct RealtimeServerEventSessionCreated {
pub event_id: String,
pub session: RealtimeSession,
}
Expand description
Returned when a Session is created. Emitted automatically when a new connection is established as the first server event. This event will contain the default Session configuration.
Fields§
§event_id: String
The unique ID of the server event.
session: RealtimeSession
Implementations§
Source§impl RealtimeServerEventSessionCreated
impl RealtimeServerEventSessionCreated
Sourcepub fn builder() -> RealtimeServerEventSessionCreatedBuilder<((), ())>
pub fn builder() -> RealtimeServerEventSessionCreatedBuilder<((), ())>
Create a builder for building RealtimeServerEventSessionCreated
.
On the builder, call .event_id(...)
, .session(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of RealtimeServerEventSessionCreated
.
Trait Implementations§
Source§impl Clone for RealtimeServerEventSessionCreated
impl Clone for RealtimeServerEventSessionCreated
Source§fn clone(&self) -> RealtimeServerEventSessionCreated
fn clone(&self) -> RealtimeServerEventSessionCreated
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'de> Deserialize<'de> for RealtimeServerEventSessionCreated
impl<'de> Deserialize<'de> for RealtimeServerEventSessionCreated
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 RealtimeServerEventSessionCreated
impl PartialEq for RealtimeServerEventSessionCreated
Source§fn eq(&self, other: &RealtimeServerEventSessionCreated) -> bool
fn eq(&self, other: &RealtimeServerEventSessionCreated) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for RealtimeServerEventSessionCreated
Auto Trait Implementations§
impl Freeze for RealtimeServerEventSessionCreated
impl RefUnwindSafe for RealtimeServerEventSessionCreated
impl Send for RealtimeServerEventSessionCreated
impl Sync for RealtimeServerEventSessionCreated
impl Unpin for RealtimeServerEventSessionCreated
impl UnwindSafe for RealtimeServerEventSessionCreated
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