Enum graph_oauth::AzureCloudInstance
source · pub enum AzureCloudInstance {
AzurePublic,
AzureChina,
AzureGermany,
AzureUsGovernment,
}
Expand description
STS instance (for instance https://login.microsoftonline.com for the Azure public cloud). Maps to the instance url string.
Variants§
AzurePublic
Microsoft Azure public cloud. Maps to https://login.microsoftonline.com
AzureChina
Microsoft Chinese national cloud. Maps to https://login.chinacloudapi.cn
AzureGermany
Microsoft German national cloud (“Black Forest”). Maps to https://login.microsoftonline.de
AzureUsGovernment
US Government cloud. Maps to https://login.microsoftonline.us
Implementations§
source§impl AzureCloudInstance
impl AzureCloudInstance
pub fn get_open_id_configuration_url(&self, authority: Authority) -> String
source§impl AzureCloudInstance
impl AzureCloudInstance
pub fn auth_uri(&self, authority: &Authority) -> Result<Url, ParseError>
pub fn token_uri(&self, authority: &Authority) -> Result<Url, ParseError>
pub fn admin_consent_uri( &self, authority: &Authority ) -> Result<Url, ParseError>
pub fn device_code_uri(&self, authority: &Authority) -> Result<Url, ParseError>
pub fn openid_configuration_uri( &self, authority: &Authority ) -> Result<Url, ParseError>
pub fn issuer(&self, authority: &Authority) -> Result<Url, ParseError>
Trait Implementations§
source§impl AsRef<str> for AzureCloudInstance
impl AsRef<str> for AzureCloudInstance
source§impl Clone for AzureCloudInstance
impl Clone for AzureCloudInstance
source§fn clone(&self) -> AzureCloudInstance
fn clone(&self) -> AzureCloudInstance
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 AzureCloudInstance
impl Debug for AzureCloudInstance
source§impl Default for AzureCloudInstance
impl Default for AzureCloudInstance
source§fn default() -> AzureCloudInstance
fn default() -> AzureCloudInstance
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AzureCloudInstance
impl<'de> Deserialize<'de> for AzureCloudInstance
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 From<&AzureCloudInstance> for Url
impl From<&AzureCloudInstance> for Url
source§fn from(value: &AzureCloudInstance) -> Self
fn from(value: &AzureCloudInstance) -> Self
Converts to this type from the input type.
source§impl From<AzureCloudInstance> for Url
impl From<AzureCloudInstance> for Url
source§fn from(value: AzureCloudInstance) -> Self
fn from(value: AzureCloudInstance) -> Self
Converts to this type from the input type.
source§impl Hash for AzureCloudInstance
impl Hash for AzureCloudInstance
source§impl Ord for AzureCloudInstance
impl Ord for AzureCloudInstance
source§fn cmp(&self, other: &AzureCloudInstance) -> Ordering
fn cmp(&self, other: &AzureCloudInstance) -> 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 AzureCloudInstance
impl PartialEq for AzureCloudInstance
source§fn eq(&self, other: &AzureCloudInstance) -> bool
fn eq(&self, other: &AzureCloudInstance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AzureCloudInstance
impl PartialOrd for AzureCloudInstance
source§fn partial_cmp(&self, other: &AzureCloudInstance) -> Option<Ordering>
fn partial_cmp(&self, other: &AzureCloudInstance) -> 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 AzureCloudInstance
impl Serialize for AzureCloudInstance
impl Copy for AzureCloudInstance
impl Eq for AzureCloudInstance
impl StructuralPartialEq for AzureCloudInstance
Auto Trait Implementations§
impl Freeze for AzureCloudInstance
impl RefUnwindSafe for AzureCloudInstance
impl Send for AzureCloudInstance
impl Sync for AzureCloudInstance
impl Unpin for AzureCloudInstance
impl UnwindSafe for AzureCloudInstance
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.