#[non_exhaustive]pub struct ApplicationRoleConnection {
pub platform_name: Option<CompactString>,
pub platform_username: Option<CompactString>,
pub metadata: BTreeMap<CompactString, CompactString>,
}Expand description
The role connection an app stored for a user (linked roles).
discord.js counterpart: none (discord-api-types APIApplicationRoleConnection).
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.platform_name: Option<CompactString>The vanity name of the connected platform (max 50 characters).
platform_username: Option<CompactString>The user’s name on the connected platform (max 100 characters).
metadata: BTreeMap<CompactString, CompactString>The user’s values, keyed by
ApplicationRoleConnectionMetadata::key
(each value stringified, max 100 characters; D-058).
Trait Implementations§
Source§impl Clone for ApplicationRoleConnection
impl Clone for ApplicationRoleConnection
Source§impl Debug for ApplicationRoleConnection
impl Debug for ApplicationRoleConnection
Source§impl Default for ApplicationRoleConnection
impl Default for ApplicationRoleConnection
Source§impl<'de> Deserialize<'de> for ApplicationRoleConnection
impl<'de> Deserialize<'de> for ApplicationRoleConnection
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 ApplicationRoleConnection
impl StructuralPartialEq for ApplicationRoleConnection
Auto Trait Implementations§
impl Forget for ApplicationRoleConnection
impl Freeze for ApplicationRoleConnection
impl Move for ApplicationRoleConnection
impl RefUnwindSafe for ApplicationRoleConnection
impl Send for ApplicationRoleConnection
impl Sync for ApplicationRoleConnection
impl Unpin for ApplicationRoleConnection
impl UnsafeUnpin for ApplicationRoleConnection
impl UnwindSafe for ApplicationRoleConnection
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