pub enum MessagingReceivedEventDataSource {
Player {
user_id: UserId,
},
Party {
party_id: PartyId,
user_id: UserId,
},
Lobby {
lobby_id: LobbyId,
user_id: UserId,
},
}Expand description
MessagingReceivedEventDataSource
JSON schema
{
"anyOf": [
{
"type": "object",
"required": [
"type",
"userId"
],
"properties": {
"type": {
"const": "player"
},
"userId": {
"$ref": "#/definitions/userId"
}
}
},
{
"type": "object",
"required": [
"partyId",
"type",
"userId"
],
"properties": {
"partyId": {
"$ref": "#/definitions/partyId"
},
"type": {
"const": "party"
},
"userId": {
"$ref": "#/definitions/userId"
}
}
},
{
"type": "object",
"required": [
"lobbyId",
"type",
"userId"
],
"properties": {
"lobbyId": {
"$ref": "#/definitions/lobbyId"
},
"type": {
"const": "lobby"
},
"userId": {
"$ref": "#/definitions/userId"
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for MessagingReceivedEventDataSource
impl Clone for MessagingReceivedEventDataSource
Source§fn clone(&self) -> MessagingReceivedEventDataSource
fn clone(&self) -> MessagingReceivedEventDataSource
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 MessagingReceivedEventDataSource
impl<'de> Deserialize<'de> for MessagingReceivedEventDataSource
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
Auto Trait Implementations§
impl Freeze for MessagingReceivedEventDataSource
impl RefUnwindSafe for MessagingReceivedEventDataSource
impl Send for MessagingReceivedEventDataSource
impl Sync for MessagingReceivedEventDataSource
impl Unpin for MessagingReceivedEventDataSource
impl UnsafeUnpin for MessagingReceivedEventDataSource
impl UnwindSafe for MessagingReceivedEventDataSource
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