pub struct Connection {
pub id: String,
pub subject: String,
pub provider: String,
pub external_account_id: Option<String>,
pub display_name: Option<String>,
pub scopes: Vec<String>,
pub status: ConnectionStatus,
pub access_expires_at: Option<String>,
pub refresh_expires_at: Option<String>,
pub last_error: Option<String>,
pub created_at: String,
pub updated_at: String,
}Expand description
A connected account, as a venture reads it. It never carries a token —
the access token is a separate call (ConnectionsApi::access_token),
so a token cannot leak by someone serializing a Connection.
Fields§
§id: StringThe connection’s id — stable, and what every other call takes.
subject: StringThe subject this connection belongs to.
provider: StringThe provider key.
external_account_id: Option<String>The provider-side account id, once a venture has learned it.
display_name: Option<String>The name to show a person for this account.
scopes: Vec<String>The scopes the provider actually granted.
status: ConnectionStatusWhere the connection stands.
access_expires_at: Option<String>When the access token lapses, RFC 3339 UTC. None when the provider
stated no lifetime.
refresh_expires_at: Option<String>When the refresh token lapses, when the provider said.
last_error: Option<String>Why the connection needs a reconnect, when it does.
created_at: StringWhen the connection was made.
updated_at: StringWhen it last changed.
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Source§impl Debug for Connection
impl Debug for Connection
impl Eq for Connection
Source§impl PartialEq for Connection
impl PartialEq for Connection
impl StructuralPartialEq for Connection
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin 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
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.