pub struct UserSelfEvent {
pub command_id: Value,
pub data: UserSelfEventData,
pub message_id: String,
pub type_: Value,
}Expand description
UserSelfEvent
JSON schema
{
"title": "UserSelfEvent",
"type": "object",
"required": [
"commandId",
"data",
"messageId",
"type"
],
"properties": {
"commandId": {
"const": "user/self"
},
"data": {
"title": "UserSelfEventData",
"type": "object",
"required": [
"user"
],
"properties": {
"user": {
"$ref": "#/definitions/privateUser"
}
}
},
"messageId": {
"type": "string"
},
"type": {
"const": "event"
}
},
"tachyon": {
"scopes": [
"tachyon.lobby"
],
"source": "server",
"target": "user"
}
}Fields§
§command_id: Value§data: UserSelfEventData§message_id: String§type_: ValueImplementations§
Source§impl UserSelfEvent
impl UserSelfEvent
pub fn builder() -> UserSelfEvent
Trait Implementations§
Source§impl Clone for UserSelfEvent
impl Clone for UserSelfEvent
Source§fn clone(&self) -> UserSelfEvent
fn clone(&self) -> UserSelfEvent
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 UserSelfEvent
impl Debug for UserSelfEvent
Source§impl<'de> Deserialize<'de> for UserSelfEvent
impl<'de> Deserialize<'de> for UserSelfEvent
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 From<UserSelfEvent> for UserSelfEvent
impl From<UserSelfEvent> for UserSelfEvent
Source§fn from(value: UserSelfEvent) -> Self
fn from(value: UserSelfEvent) -> Self
Converts to this type from the input type.
Source§impl Serialize for UserSelfEvent
impl Serialize for UserSelfEvent
Source§impl TryFrom<UserSelfEvent> for UserSelfEvent
impl TryFrom<UserSelfEvent> for UserSelfEvent
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UserSelfEvent) -> Result<Self, ConversionError>
fn try_from(value: UserSelfEvent) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UserSelfEvent
impl RefUnwindSafe for UserSelfEvent
impl Send for UserSelfEvent
impl Sync for UserSelfEvent
impl Unpin for UserSelfEvent
impl UnsafeUnpin for UserSelfEvent
impl UnwindSafe for UserSelfEvent
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