pub struct AuthCredential {
pub auth_type: AuthCredentialType,
pub resource_ref: Option<String>,
pub api_key: Option<String>,
pub http: Option<HttpAuth>,
pub oauth2: Option<OAuth2Auth>,
pub service_account: Option<ServiceAccountCredential>,
}Expand description
Full auth credential — discriminated by auth_type with variant-specific data.
Fields§
§auth_type: AuthCredentialTypeThe type of this credential.
resource_ref: Option<String>Optional external resource reference.
api_key: Option<String>API key value (when auth_type is ApiKey).
http: Option<HttpAuth>HTTP auth data (when auth_type is Http).
oauth2: Option<OAuth2Auth>OAuth2 auth data (when auth_type is OAuth2).
service_account: Option<ServiceAccountCredential>Service account data (when auth_type is ServiceAccount).
Trait Implementations§
Source§impl Clone for AuthCredential
impl Clone for AuthCredential
Source§fn clone(&self) -> AuthCredential
fn clone(&self) -> AuthCredential
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 AuthCredential
impl Debug for AuthCredential
Source§impl<'de> Deserialize<'de> for AuthCredential
impl<'de> Deserialize<'de> for AuthCredential
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 AuthCredential
impl RefUnwindSafe for AuthCredential
impl Send for AuthCredential
impl Sync for AuthCredential
impl Unpin for AuthCredential
impl UnwindSafe for AuthCredential
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