pub struct PublicConnection {
pub connected_account_id: String,
pub connection_type: ConnectionType,
pub name: String,
pub verified: bool,
pub metadata: Option<HashMap<String, String>>,
}Expand description
A partial / public Connection type.
§Reference
See https://docs.discord.food/resources/user#partial-connection-structure
Fields§
§connected_account_id: StringThe id of the account on the 3rd party service
connection_type: ConnectionType§name: StringThe username of the connection account
verified: boolIf the connection is verified
metadata: Option<HashMap<String, String>>Service specific metadata about the connection / connected account
Trait Implementations§
Source§impl Clone for PublicConnection
impl Clone for PublicConnection
Source§fn clone(&self) -> PublicConnection
fn clone(&self) -> PublicConnection
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 PublicConnection
impl Debug for PublicConnection
Source§impl<'de> Deserialize<'de> for PublicConnection
impl<'de> Deserialize<'de> for PublicConnection
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<Connection> for PublicConnection
impl From<Connection> for PublicConnection
Source§fn from(value: Connection) -> Self
fn from(value: Connection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PublicConnection
impl PartialEq for PublicConnection
Source§impl Serialize for PublicConnection
impl Serialize for PublicConnection
impl Eq for PublicConnection
impl StructuralPartialEq for PublicConnection
Auto Trait Implementations§
impl Freeze for PublicConnection
impl RefUnwindSafe for PublicConnection
impl Send for PublicConnection
impl Sync for PublicConnection
impl Unpin for PublicConnection
impl UnwindSafe for PublicConnection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.