pub enum SendbirdWsEvent {
SessionKey {
key: String,
},
Read {
req_id: Option<String>,
payload: Value,
},
Typing {
event: SendbirdSyevEvent,
},
Ping {
payload: Value,
},
Pong {
payload: Value,
},
Close {
code: Option<u16>,
reason: Option<String>,
},
Raw {
frame: String,
},
}Variants§
Trait Implementations§
Source§impl Clone for SendbirdWsEvent
impl Clone for SendbirdWsEvent
Source§fn clone(&self) -> SendbirdWsEvent
fn clone(&self) -> SendbirdWsEvent
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 SendbirdWsEvent
impl Debug for SendbirdWsEvent
Source§impl<'de> Deserialize<'de> for SendbirdWsEvent
impl<'de> Deserialize<'de> for SendbirdWsEvent
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 JsonSchema for SendbirdWsEvent
impl JsonSchema for SendbirdWsEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SendbirdWsEvent
impl PartialEq for SendbirdWsEvent
Source§impl Serialize for SendbirdWsEvent
impl Serialize for SendbirdWsEvent
impl StructuralPartialEq for SendbirdWsEvent
Auto Trait Implementations§
impl Freeze for SendbirdWsEvent
impl RefUnwindSafe for SendbirdWsEvent
impl Send for SendbirdWsEvent
impl Sync for SendbirdWsEvent
impl Unpin for SendbirdWsEvent
impl UnsafeUnpin for SendbirdWsEvent
impl UnwindSafe for SendbirdWsEvent
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