pub struct PublicClientApplicationBuilder { /* private fields */ }
Implementations§
Source§impl PublicClientApplicationBuilder
impl PublicClientApplicationBuilder
pub fn new(client_id: impl AsRef<str>) -> PublicClientApplicationBuilder
pub fn create_with_application_options( application_options: ApplicationOptions, ) -> IdentityResult<PublicClientApplicationBuilder>
pub fn with_tenant(&mut self, tenant_id: impl AsRef<str>) -> &mut Self
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
pub fn with_device_code_executor(&mut self) -> DeviceCodePollingExecutor
pub fn with_device_code( &mut self, device_code: impl AsRef<str>, ) -> DeviceCodeCredentialBuilder
pub fn with_username_password( &mut self, username: impl AsRef<str>, password: impl AsRef<str>, ) -> ResourceOwnerPasswordCredentialBuilder
pub fn with_username_password_from_environment() -> Result<PublicClientApplication<ResourceOwnerPasswordCredential>, VarError>
pub fn with_auth_code( &mut self, authorization_code: impl AsRef<str>, ) -> AuthorizationCodeSpaCredentialBuilder
Trait Implementations§
Source§impl TryFrom<ApplicationOptions> for PublicClientApplicationBuilder
impl TryFrom<ApplicationOptions> for PublicClientApplicationBuilder
Source§type Error = AuthorizationFailure
type Error = AuthorizationFailure
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for PublicClientApplicationBuilder
impl RefUnwindSafe for PublicClientApplicationBuilder
impl Send for PublicClientApplicationBuilder
impl Sync for PublicClientApplicationBuilder
impl Unpin for PublicClientApplicationBuilder
impl UnwindSafe for PublicClientApplicationBuilder
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