pub struct AuthorizationCodeSpaCredentialBuilder { /* private fields */ }
Implementations§
Source§impl AuthorizationCodeSpaCredentialBuilder
impl AuthorizationCodeSpaCredentialBuilder
pub fn with_client_id( &mut self, client_id: impl TryInto<Uuid>, ) -> &mut AuthorizationCodeSpaCredentialBuilder
Sourcepub fn with_tenant(
&mut self,
tenant_id: impl AsRef<str>,
) -> &mut AuthorizationCodeSpaCredentialBuilder
pub fn with_tenant( &mut self, tenant_id: impl AsRef<str>, ) -> &mut AuthorizationCodeSpaCredentialBuilder
Convenience method. Same as calling [with_authority(Authority::TenantId(“tenant_id”))]
pub fn with_azure_cloud_instance( &mut self, azure_cloud_instance: AzureCloudInstance, ) -> &mut AuthorizationCodeSpaCredentialBuilder
Sourcepub fn with_extra_query_param(
&mut self,
query_param: (String, String),
) -> &mut AuthorizationCodeSpaCredentialBuilder
pub fn with_extra_query_param( &mut self, query_param: (String, String), ) -> &mut AuthorizationCodeSpaCredentialBuilder
Extends the query parameters of both the default query params and user defined params. Does not overwrite default params.
Sourcepub fn with_extra_query_parameters(
&mut self,
query_parameters: HashMap<String, String>,
) -> &mut AuthorizationCodeSpaCredentialBuilder
pub fn with_extra_query_parameters( &mut self, query_parameters: HashMap<String, String>, ) -> &mut AuthorizationCodeSpaCredentialBuilder
Extends the query parameters of both the default query params and user defined params. Does not overwrite default params.
Sourcepub fn with_extra_header_param<K, V>(
&mut self,
header_name: K,
header_value: V,
) -> &mut AuthorizationCodeSpaCredentialBuilder
pub fn with_extra_header_param<K, V>( &mut self, header_name: K, header_value: V, ) -> &mut AuthorizationCodeSpaCredentialBuilder
Extends the header parameters of both the default header params and user defined params. Does not overwrite default params.
Sourcepub fn with_extra_header_parameters(
&mut self,
header_parameters: HeaderMap,
) -> &mut AuthorizationCodeSpaCredentialBuilder
pub fn with_extra_header_parameters( &mut self, header_parameters: HeaderMap, ) -> &mut AuthorizationCodeSpaCredentialBuilder
Extends the header parameters of both the default header params and user defined params. Does not overwrite default params.
pub fn with_scope<T, I>(
&mut self,
scope: I,
) -> &mut AuthorizationCodeSpaCredentialBuilderwhere
T: ToString,
I: IntoIterator<Item = T>,
Source§impl AuthorizationCodeSpaCredentialBuilder
impl AuthorizationCodeSpaCredentialBuilder
pub fn build(&self) -> PublicClientApplication<AuthorizationCodeSpaCredential>
Source§impl AuthorizationCodeSpaCredentialBuilder
impl AuthorizationCodeSpaCredentialBuilder
pub fn with_refresh_token<T>( &mut self, refresh_token: T, ) -> &mut AuthorizationCodeSpaCredentialBuilder
Sourcepub fn with_redirect_uri(
&mut self,
redirect_uri: Url,
) -> &mut AuthorizationCodeSpaCredentialBuilder
pub fn with_redirect_uri( &mut self, redirect_uri: Url, ) -> &mut AuthorizationCodeSpaCredentialBuilder
Defaults to http://localhost
pub fn with_pkce( &mut self, proof_key_for_code_exchange: &ProofKeyCodeExchange, ) -> &mut AuthorizationCodeSpaCredentialBuilder
Trait Implementations§
Source§impl Clone for AuthorizationCodeSpaCredentialBuilder
impl Clone for AuthorizationCodeSpaCredentialBuilder
Source§fn clone(&self) -> AuthorizationCodeSpaCredentialBuilder
fn clone(&self) -> AuthorizationCodeSpaCredentialBuilder
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<(AppConfig, AuthorizationResponse)> for AuthorizationCodeSpaCredentialBuilder
impl From<(AppConfig, AuthorizationResponse)> for AuthorizationCodeSpaCredentialBuilder
Source§fn from(
value: (AppConfig, AuthorizationResponse),
) -> AuthorizationCodeSpaCredentialBuilder
fn from( value: (AppConfig, AuthorizationResponse), ) -> AuthorizationCodeSpaCredentialBuilder
Converts to this type from the input type.
Source§impl From<AuthorizationCodeSpaCredential> for AuthorizationCodeSpaCredentialBuilder
impl From<AuthorizationCodeSpaCredential> for AuthorizationCodeSpaCredentialBuilder
Source§fn from(
credential: AuthorizationCodeSpaCredential,
) -> AuthorizationCodeSpaCredentialBuilder
fn from( credential: AuthorizationCodeSpaCredential, ) -> AuthorizationCodeSpaCredentialBuilder
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthorizationCodeSpaCredentialBuilder
impl !RefUnwindSafe for AuthorizationCodeSpaCredentialBuilder
impl Send for AuthorizationCodeSpaCredentialBuilder
impl Sync for AuthorizationCodeSpaCredentialBuilder
impl Unpin for AuthorizationCodeSpaCredentialBuilder
impl !UnwindSafe for AuthorizationCodeSpaCredentialBuilder
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