Struct twilight_model::user::Connection
source · pub struct Connection {
pub friend_sync: bool,
pub id: String,
pub integrations: Vec<GuildIntegration>,
pub kind: String,
pub name: String,
pub revoked: Option<bool>,
pub show_activity: bool,
pub two_way_link: bool,
pub verified: bool,
pub visibility: ConnectionVisibility,
}Fields§
§friend_sync: bool§id: String§integrations: Vec<GuildIntegration>§kind: String§name: String§revoked: Option<bool>§show_activity: bool§two_way_link: boolWhether this connection has a corresponding third party OAuth2 token.
verified: bool§visibility: ConnectionVisibilityTrait Implementations§
source§impl Clone for Connection
impl Clone for Connection
source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a copy 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 Connection
impl Debug for Connection
source§impl<'de> Deserialize<'de> for Connection
impl<'de> Deserialize<'de> for Connection
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<Connection> for Connection
impl PartialEq<Connection> for Connection
source§fn eq(&self, other: &Connection) -> bool
fn eq(&self, other: &Connection) -> bool
This method tests for
self and other values to be equal, and is used
by ==.