Struct graph_oauth::ApplicationOptions
source · pub struct ApplicationOptions {
pub client_id: Uuid,
pub tenant_id: Option<String>,
pub aad_authority_audience: Option<AadAuthorityAudience>,
pub instance: Option<Url>,
pub azure_cloud_instance: Option<AzureCloudInstance>,
pub redirect_uri: Option<Url>,
}
Expand description
Application Options typically stored as JSON file in .net applications.
Fields§
§client_id: Uuid
Client ID (also known as App ID) of the application as registered in the application registration portal (https://aka.ms/msal-net-register-app) Required parameter for ApplicationOptions.
tenant_id: Option<String>
Tenant from which the application will allow users to sign it. This can be: a domain associated with a tenant, a GUID (tenant id), or a meta-tenant (e.g. consumers). This property is mutually exclusive with AadAuthorityAudience. If both are provided, an error result will be returned when mapping to crate::identity::ConfidentialClientApplication
instance: Option<Url>
§azure_cloud_instance: Option<AzureCloudInstance>
§redirect_uri: Option<Url>
Implementations§
source§impl ApplicationOptions
impl ApplicationOptions
pub fn new(client_id: impl AsRef<str>) -> ApplicationOptions
Trait Implementations§
source§impl Clone for ApplicationOptions
impl Clone for ApplicationOptions
source§fn clone(&self) -> ApplicationOptions
fn clone(&self) -> ApplicationOptions
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 Debug for ApplicationOptions
impl Debug for ApplicationOptions
source§impl Default for ApplicationOptions
impl Default for ApplicationOptions
source§fn default() -> ApplicationOptions
fn default() -> ApplicationOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ApplicationOptions
impl<'de> Deserialize<'de> for ApplicationOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ApplicationOptions
impl Hash for ApplicationOptions
source§impl Ord for ApplicationOptions
impl Ord for ApplicationOptions
source§fn cmp(&self, other: &ApplicationOptions) -> Ordering
fn cmp(&self, other: &ApplicationOptions) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ApplicationOptions
impl PartialEq for ApplicationOptions
source§fn eq(&self, other: &ApplicationOptions) -> bool
fn eq(&self, other: &ApplicationOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ApplicationOptions
impl PartialOrd for ApplicationOptions
source§fn partial_cmp(&self, other: &ApplicationOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &ApplicationOptions) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ApplicationOptions
impl Serialize for ApplicationOptions
source§impl TryFrom<ApplicationOptions> for AppConfig
impl TryFrom<ApplicationOptions> for AppConfig
§type Error = AuthorizationFailure
type Error = AuthorizationFailure
The type returned in the event of a conversion error.
source§impl TryFrom<ApplicationOptions> for ConfidentialClientApplicationBuilder
impl TryFrom<ApplicationOptions> for ConfidentialClientApplicationBuilder
§type Error = AuthorizationFailure
type Error = AuthorizationFailure
The type returned in the event of a conversion error.
source§impl TryFrom<ApplicationOptions> for PublicClientApplicationBuilder
impl TryFrom<ApplicationOptions> for PublicClientApplicationBuilder
§type Error = AuthorizationFailure
type Error = AuthorizationFailure
The type returned in the event of a conversion error.
impl Eq for ApplicationOptions
impl StructuralPartialEq for ApplicationOptions
Auto Trait Implementations§
impl Freeze for ApplicationOptions
impl RefUnwindSafe for ApplicationOptions
impl Send for ApplicationOptions
impl Sync for ApplicationOptions
impl Unpin for ApplicationOptions
impl UnwindSafe for ApplicationOptions
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.