pub struct CredentialConfig {
pub tenant_id: Option<String>,
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub disable_managed_identity: bool,
}Expand description
Configuration for credential resolution.
Fields§
§tenant_id: Option<String>§client_id: Option<String>§client_secret: Option<String>§disable_managed_identity: boolImplementations§
Source§impl CredentialConfig
impl CredentialConfig
Sourcepub fn resolve_credential_type(&self) -> Result<CredentialType>
pub fn resolve_credential_type(&self) -> Result<CredentialType>
Determines which credential type should be used based on the configuration.
Sourcepub fn has_client_secret_credentials(&self) -> bool
pub fn has_client_secret_credentials(&self) -> bool
Checks if all client secret credentials are present.
Sourcepub fn has_partial_credentials(&self) -> bool
pub fn has_partial_credentials(&self) -> bool
Checks if any partial client secret credentials are present.
Trait Implementations§
Source§impl Clone for CredentialConfig
impl Clone for CredentialConfig
Source§fn clone(&self) -> CredentialConfig
fn clone(&self) -> CredentialConfig
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 moreAuto Trait Implementations§
impl Freeze for CredentialConfig
impl RefUnwindSafe for CredentialConfig
impl Send for CredentialConfig
impl Sync for CredentialConfig
impl Unpin for CredentialConfig
impl UnsafeUnpin for CredentialConfig
impl UnwindSafe for CredentialConfig
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