Struct serenity::model::connection::Connection [−][src]
#[non_exhaustive]pub struct Connection {
pub id: String,
pub name: String,
pub kind: String,
pub revoked: bool,
pub integrations: Vec<Integration>,
pub verified: bool,
pub friend_sync: bool,
pub show_activity: bool,
pub visibility: ConnectionVisibility,
}
Expand description
Information about a connection between the current user and a third party service.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: String
The ID of the account on the other side of this connection.
name: String
The username of the account on the other side of this connection.
kind: String
The service that this connection represents (e.g. twitch, youtube)
revoked: bool
Whether this connection has been revoked and is no longer valid.
integrations: Vec<Integration>
A list of partial guild Integration
s that use this connection.
verified: bool
Whether this connection has been verified and the user has proven they own the account.
friend_sync: bool
Whether friend sync is enabled for this connection.
show_activity: bool
Whether activities related to this connection will be shown in presence updates.
visibility: ConnectionVisibility
The visibility of this connection.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more