#[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 two_way_link: 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
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.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.
two_way_link: bool
Whether this connection has a corresponding third party OAuth2 token.
visibility: ConnectionVisibility
The visibility of this connection.
Trait 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
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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