pub struct UserUpdatedEventData {
pub users: Vec<UserUpdatedEventDataUsersItem>,
}Expand description
UserUpdatedEventData
JSON schema
{
"title": "UserUpdatedEventData",
"type": "object",
"required": [
"users"
],
"properties": {
"users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"clanBaseData": {
"anyOf": [
{
"allOf": [
{
"type": "object",
"required": [
"clanId"
],
"properties": {
"clanId": {
"$ref": "#/definitions/clanId"
}
}
},
{
"$ref": "#/definitions/clanUpdateableBaseData"
}
]
},
{
"type": "null"
}
]
},
"countryCode": {
"type": "string"
},
"displayName": {
"type": "string"
},
"rating": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"description": "Key is omitted when the player isn't rated yet.",
"type": "number"
}
}
},
"roles": {
"type": "array",
"items": {
"enum": [
"contributor",
"admin",
"moderator",
"tournament_winner",
"tournament_caster"
]
},
"uniqueItems": true
},
"status": {
"enum": [
"offline",
"menu",
"playing",
"lobby"
]
},
"userId": {
"$ref": "#/definitions/userId"
},
"username": {
"type": "string"
}
}
}
}
}
}Fields§
§users: Vec<UserUpdatedEventDataUsersItem>Implementations§
Source§impl UserUpdatedEventData
impl UserUpdatedEventData
pub fn builder() -> UserUpdatedEventData
Trait Implementations§
Source§impl Clone for UserUpdatedEventData
impl Clone for UserUpdatedEventData
Source§fn clone(&self) -> UserUpdatedEventData
fn clone(&self) -> UserUpdatedEventData
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 UserUpdatedEventData
impl Debug for UserUpdatedEventData
Source§impl<'de> Deserialize<'de> for UserUpdatedEventData
impl<'de> Deserialize<'de> for UserUpdatedEventData
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<UserUpdatedEventData> for UserUpdatedEventData
impl From<UserUpdatedEventData> for UserUpdatedEventData
Source§fn from(value: UserUpdatedEventData) -> Self
fn from(value: UserUpdatedEventData) -> Self
Converts to this type from the input type.
Source§impl Serialize for UserUpdatedEventData
impl Serialize for UserUpdatedEventData
Source§impl TryFrom<UserUpdatedEventData> for UserUpdatedEventData
impl TryFrom<UserUpdatedEventData> for UserUpdatedEventData
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: UserUpdatedEventData) -> Result<Self, ConversionError>
fn try_from(value: UserUpdatedEventData) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for UserUpdatedEventData
impl RefUnwindSafe for UserUpdatedEventData
impl Send for UserUpdatedEventData
impl Sync for UserUpdatedEventData
impl Unpin for UserUpdatedEventData
impl UnsafeUnpin for UserUpdatedEventData
impl UnwindSafe for UserUpdatedEventData
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