pub struct SessionCreatedEvent {
pub id: Option<String>,
pub session: Option<JsonPayload>,
pub raw: WebSocketServerEvent,
}Available on crate features
realtime or responses-ws only.Expand description
表示会话创建事件。
Fields§
§id: Option<String>会话 ID。
session: Option<JsonPayload>原始会话对象。
raw: WebSocketServerEvent原始事件。
Trait Implementations§
Source§impl Clone for SessionCreatedEvent
impl Clone for SessionCreatedEvent
Source§fn clone(&self) -> SessionCreatedEvent
fn clone(&self) -> SessionCreatedEvent
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 Debug for SessionCreatedEvent
impl Debug for SessionCreatedEvent
Source§impl PartialEq for SessionCreatedEvent
impl PartialEq for SessionCreatedEvent
impl StructuralPartialEq for SessionCreatedEvent
Auto Trait Implementations§
impl Freeze for SessionCreatedEvent
impl RefUnwindSafe for SessionCreatedEvent
impl Send for SessionCreatedEvent
impl Sync for SessionCreatedEvent
impl Unpin for SessionCreatedEvent
impl UnsafeUnpin for SessionCreatedEvent
impl UnwindSafe for SessionCreatedEvent
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