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