pub struct PlayerJoinedUpdate {
pub player_number: i64,
pub type_: Value,
pub user_id: UserId,
}Expand description
PlayerJoinedUpdate
JSON schema
{
"title": "PlayerJoinedUpdate",
"type": "object",
"required": [
"playerNumber",
"type",
"userId"
],
"properties": {
"playerNumber": {
"description": "Player number in the game, can be useful for custom commands",
"type": "integer"
},
"type": {
"const": "player_joined"
},
"userId": {
"$ref": "#/definitions/userId"
}
}
}Fields§
§player_number: i64Player number in the game, can be useful for custom commands
type_: Value§user_id: UserIdImplementations§
Source§impl PlayerJoinedUpdate
impl PlayerJoinedUpdate
pub fn builder() -> PlayerJoinedUpdate
Trait Implementations§
Source§impl Clone for PlayerJoinedUpdate
impl Clone for PlayerJoinedUpdate
Source§fn clone(&self) -> PlayerJoinedUpdate
fn clone(&self) -> PlayerJoinedUpdate
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 PlayerJoinedUpdate
impl Debug for PlayerJoinedUpdate
Source§impl<'de> Deserialize<'de> for PlayerJoinedUpdate
impl<'de> Deserialize<'de> for PlayerJoinedUpdate
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<PlayerJoinedUpdate> for PlayerJoinedUpdate
impl From<PlayerJoinedUpdate> for PlayerJoinedUpdate
Source§fn from(value: PlayerJoinedUpdate) -> Self
fn from(value: PlayerJoinedUpdate) -> Self
Converts to this type from the input type.
Source§impl Serialize for PlayerJoinedUpdate
impl Serialize for PlayerJoinedUpdate
Source§impl TryFrom<PlayerJoinedUpdate> for PlayerJoinedUpdate
impl TryFrom<PlayerJoinedUpdate> for PlayerJoinedUpdate
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PlayerJoinedUpdate) -> Result<Self, ConversionError>
fn try_from(value: PlayerJoinedUpdate) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PlayerJoinedUpdate
impl RefUnwindSafe for PlayerJoinedUpdate
impl Send for PlayerJoinedUpdate
impl Sync for PlayerJoinedUpdate
impl Unpin for PlayerJoinedUpdate
impl UnsafeUnpin for PlayerJoinedUpdate
impl UnwindSafe for PlayerJoinedUpdate
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