pub enum ConnectionProvider {
Oauth2AuthorizationCode,
Oauth2ClientCredentials,
ApiKey,
Basic,
}Expand description
The provider kind of a ConnectionRecord. Closed enum, additive
evolution — a fifth kind lands as a new variant, never a rewrite of
pinned shapes (the CandidateKind rule).
Variants§
Oauth2AuthorizationCode
An OAuth 2.0 authorization-code grant: a human consented at the provider, and the broker recorded what was granted.
Oauth2ClientCredentials
An OAuth 2.0 client-credentials grant (service-to-service).
ApiKey
A static API key presented as a bearer or header credential.
Basic
HTTP basic authentication (username:password material).
Implementations§
Trait Implementations§
Source§impl Clone for ConnectionProvider
impl Clone for ConnectionProvider
Source§fn clone(&self) -> ConnectionProvider
fn clone(&self) -> ConnectionProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConnectionProvider
Source§impl Debug for ConnectionProvider
impl Debug for ConnectionProvider
Source§impl<'de> Deserialize<'de> for ConnectionProvider
impl<'de> Deserialize<'de> for ConnectionProvider
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
impl Eq for ConnectionProvider
Source§impl Hash for ConnectionProvider
impl Hash for ConnectionProvider
Source§impl Ord for ConnectionProvider
impl Ord for ConnectionProvider
Source§fn cmp(&self, other: &ConnectionProvider) -> Ordering
fn cmp(&self, other: &ConnectionProvider) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConnectionProvider
impl PartialEq for ConnectionProvider
Source§impl PartialOrd for ConnectionProvider
impl PartialOrd for ConnectionProvider
Source§impl Serialize for ConnectionProvider
impl Serialize for ConnectionProvider
impl StructuralPartialEq for ConnectionProvider
Auto Trait Implementations§
impl Freeze for ConnectionProvider
impl RefUnwindSafe for ConnectionProvider
impl Send for ConnectionProvider
impl Sync for ConnectionProvider
impl Unpin for ConnectionProvider
impl UnsafeUnpin for ConnectionProvider
impl UnwindSafe for ConnectionProvider
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