#[non_exhaustive]pub struct ApplicationIdentityProfile {
pub username: Option<CompactString>,
pub metadata: Option<BTreeMap<CompactString, JsonValue>>,
pub data: Option<ProfileData>,
}Expand description
The profile of an application identity: the user’s game stats.
Contains floats, so it is PartialEq but not Eq (D-064).
discord.js counterpart: APIApplicationIdentityProfile (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.username: Option<CompactString>The user’s username in the external system.
metadata: Option<BTreeMap<CompactString, JsonValue>>Arbitrary game-defined data, stored for the app’s own use (D-072).
data: Option<ProfileData>The game stats.
Trait Implementations§
Source§impl Clone for ApplicationIdentityProfile
impl Clone for ApplicationIdentityProfile
Source§impl Debug for ApplicationIdentityProfile
impl Debug for ApplicationIdentityProfile
Source§impl Default for ApplicationIdentityProfile
impl Default for ApplicationIdentityProfile
Source§impl<'de> Deserialize<'de> for ApplicationIdentityProfile
impl<'de> Deserialize<'de> for ApplicationIdentityProfile
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
impl StructuralPartialEq for ApplicationIdentityProfile
Auto Trait Implementations§
impl Forget for ApplicationIdentityProfile
impl Freeze for ApplicationIdentityProfile
impl Move for ApplicationIdentityProfile
impl RefUnwindSafe for ApplicationIdentityProfile
impl Send for ApplicationIdentityProfile
impl Sync for ApplicationIdentityProfile
impl Unpin for ApplicationIdentityProfile
impl UnsafeUnpin for ApplicationIdentityProfile
impl UnwindSafe for ApplicationIdentityProfile
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