pub struct ConnectionStateVal {Show 16 fields
pub status: Option<String>,
pub access_token: Option<String>,
pub refresh_token: Option<String>,
pub token_type: Option<String>,
pub expires_in: Option<Value>,
pub scope: Option<Value>,
pub id_token: Option<String>,
pub code_verifier: Option<String>,
pub callback_url: Option<String>,
pub oauth_token: Option<String>,
pub oauth_token_secret: Option<String>,
pub api_key: Option<String>,
pub generic_api_key: Option<String>,
pub token: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
}Expand description
Connection state value - varies by auth scheme
Fields§
§status: Option<String>Connection status
access_token: Option<String>OAuth2 access token
refresh_token: Option<String>OAuth2 refresh token
token_type: Option<String>Token type (usually “Bearer”)
expires_in: Option<Value>Token expiration time in seconds
scope: Option<Value>OAuth2 scopes
id_token: Option<String>OpenID Connect ID token
code_verifier: Option<String>PKCE code verifier
callback_url: Option<String>OAuth callback URL
oauth_token: Option<String>OAuth1 token
oauth_token_secret: Option<String>OAuth1 token secret
api_key: Option<String>API key
generic_api_key: Option<String>Generic API key
token: Option<String>Bearer token
username: Option<String>Username for basic auth
password: Option<String>Password for basic auth
Trait Implementations§
Source§impl Clone for ConnectionStateVal
impl Clone for ConnectionStateVal
Source§fn clone(&self) -> ConnectionStateVal
fn clone(&self) -> ConnectionStateVal
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 ConnectionStateVal
impl Debug for ConnectionStateVal
Source§impl<'de> Deserialize<'de> for ConnectionStateVal
impl<'de> Deserialize<'de> for ConnectionStateVal
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 ConnectionStateVal
impl RefUnwindSafe for ConnectionStateVal
impl Send for ConnectionStateVal
impl Sync for ConnectionStateVal
impl Unpin for ConnectionStateVal
impl UnsafeUnpin for ConnectionStateVal
impl UnwindSafe for ConnectionStateVal
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