#[non_exhaustive]pub struct ProfileData {
pub primary: Option<Box<PrimaryProfileData>>,
pub dynamic: Vec<DynamicField>,
}Expand description
The game stats of a profile: preconfigured fields and custom ones.
Also the data sent to update a profile (max 10 KB serialized, up to 30 dynamic fields).
discord.js counterpart: APIApplicationIdentityProfileData (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.primary: Option<Box<PrimaryProfileData>>The preconfigured stat fields.
dynamic: Vec<DynamicField>Custom stat fields.
Trait Implementations§
Source§impl Clone for ProfileData
impl Clone for ProfileData
Source§impl Debug for ProfileData
impl Debug for ProfileData
Source§impl Default for ProfileData
impl Default for ProfileData
Source§impl<'de> Deserialize<'de> for ProfileData
impl<'de> Deserialize<'de> for ProfileData
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 PartialEq for ProfileData
impl PartialEq for ProfileData
Source§impl Serialize for ProfileData
impl Serialize for ProfileData
impl StructuralPartialEq for ProfileData
Auto Trait Implementations§
impl Freeze for ProfileData
impl RefUnwindSafe for ProfileData
impl Send for ProfileData
impl Sync for ProfileData
impl Unpin for ProfileData
impl UnsafeUnpin for ProfileData
impl UnwindSafe for ProfileData
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