[−][src]Enum graph_rs_sdk::oauth::graphdiscovery::GraphDiscovery
Variants
Tenant(String)
Implementations
impl GraphDiscovery
[src]
pub fn url(&self) -> String
[src]
Get the URL for the public keys used by the Microsoft identity platform to sign security tokens.
Example
let url = GraphDiscovery::V1.url(); println!("{}", url);
pub fn signing_keys<T>(self) -> Result<T, OAuthError> where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
Get the public keys used by the Microsoft identity platform to sign security tokens.
Example
let keys: serde_json::Value = GraphDiscovery::V1.signing_keys().unwrap(); println!("{:#?}", keys);
pub async fn async_signing_keys<T>(self) -> Result<T, OAuthError> where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
Get the public keys used by the Microsoft identity platform to sign security tokens.
Example
let keys: serde_json::Value = GraphDiscovery::V1.async_signing_keys().await.unwrap(); println!("{:#?}", keys);
pub fn oauth(self) -> Result<OAuth, OAuthError>
[src]
Automatically convert the public keys used by the Microsoft identity platform to sign security tokens into an OAuth object. This will get the common urls for authorization and access tokens and insert them into OAuth.
Example
let oauth = GraphDiscovery::V1.oauth().unwrap(); println!("{:#?}", oauth);
pub async fn async_oauth(self) -> Result<OAuth, OAuthError>
[src]
Automatically convert the public keys used by the Microsoft identity platform to sign security tokens into an OAuth object. This will get the common urls for authorization and access tokens and insert them into OAuth.
Example
let oauth = GraphDiscovery::V1.async_oauth().await.unwrap(); println!("{:#?}", oauth);
Auto Trait Implementations
impl RefUnwindSafe for GraphDiscovery
[src]
impl Send for GraphDiscovery
[src]
impl Sync for GraphDiscovery
[src]
impl Unpin for GraphDiscovery
[src]
impl UnwindSafe for GraphDiscovery
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,