#[non_exhaustive]pub struct ApplicationIdentity {
pub user_id: Option<UserId>,
pub provider_type: CompactString,
pub provider_id: Option<CompactString>,
pub provider_issued_user_id: CompactString,
}Expand description
An application identity: a user’s account in the app’s external system.
discord.js counterpart: APIApplicationIdentity (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.user_id: Option<UserId>The Discord user (included in the identity lists the API returns).
provider_type: CompactStringThe external account provider type (NONE for identities created by a profile write).
provider_id: Option<CompactString>A provider-specific ID that disambiguates identities (absent when empty).
provider_issued_user_id: CompactStringThe user’s ID in the external system.
Trait Implementations§
Source§impl Clone for ApplicationIdentity
impl Clone for ApplicationIdentity
Source§impl Debug for ApplicationIdentity
impl Debug for ApplicationIdentity
Source§impl<'de> Deserialize<'de> for ApplicationIdentity
impl<'de> Deserialize<'de> for ApplicationIdentity
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 Eq for ApplicationIdentity
Source§impl Hash for ApplicationIdentity
impl Hash for ApplicationIdentity
Source§impl PartialEq for ApplicationIdentity
impl PartialEq for ApplicationIdentity
Source§impl Serialize for ApplicationIdentity
impl Serialize for ApplicationIdentity
impl StructuralPartialEq for ApplicationIdentity
Auto Trait Implementations§
impl Forget for ApplicationIdentity
impl Freeze for ApplicationIdentity
impl Move for ApplicationIdentity
impl RefUnwindSafe for ApplicationIdentity
impl Send for ApplicationIdentity
impl Sync for ApplicationIdentity
impl Unpin for ApplicationIdentity
impl UnsafeUnpin for ApplicationIdentity
impl UnwindSafe for ApplicationIdentity
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