pub struct ClientCertificateCredentialOptions { /* private fields */ }
Expand description
Provides options to configure how the Identity library makes authentication requests to Azure Active Directory.
Implementations§
source§impl ClientCertificateCredentialOptions
impl ClientCertificateCredentialOptions
sourcepub fn new(
options: impl Into<TokenCredentialOptions>,
send_certificate_chain: bool
) -> Self
pub fn new( options: impl Into<TokenCredentialOptions>, send_certificate_chain: bool ) -> Self
Create a new TokenCredentialsOptions
. default() may also be used.
pub fn options(&self) -> &TokenCredentialOptions
pub fn options_mut(&mut self) -> &mut TokenCredentialOptions
sourcepub fn set_send_certificate_chain(&mut self, send_certificate_chain: bool)
pub fn set_send_certificate_chain(&mut self, send_certificate_chain: bool)
Enable/disable sending the certificate chain
sourcepub fn send_certificate_chain(&self) -> bool
pub fn send_certificate_chain(&self) -> bool
Whether certificate chain is sent as part of the request or not. Default is set to true
Trait Implementations§
source§impl Clone for ClientCertificateCredentialOptions
impl Clone for ClientCertificateCredentialOptions
source§fn clone(&self) -> ClientCertificateCredentialOptions
fn clone(&self) -> ClientCertificateCredentialOptions
Returns a copy 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 From<TokenCredentialOptions> for ClientCertificateCredentialOptions
impl From<TokenCredentialOptions> for ClientCertificateCredentialOptions
source§fn from(options: TokenCredentialOptions) -> Self
fn from(options: TokenCredentialOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientCertificateCredentialOptions
impl !RefUnwindSafe for ClientCertificateCredentialOptions
impl Send for ClientCertificateCredentialOptions
impl Sync for ClientCertificateCredentialOptions
impl Unpin for ClientCertificateCredentialOptions
impl !UnwindSafe for ClientCertificateCredentialOptions
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