pub fn contains(&self, t: OAuthCredential) -> bool {
        if t == OAuthCredential::Scopes {
            return !self.scopes.is_empty();
        }
        self.credentials.contains_key(t.alias())
    }
/// Check if an OAuth credential has already been set.
///
/// # Example
/// ```
/// # use graph_oauth::oauth::OAuth;
/// # use graph_oauth::oauth::OAuthCredential;
/// # let mut oauth = OAuth::new();
/// println!("{:#?}", oauth.contains(OAuthCredential::Nonce));
/// ```
Check if an OAuth credential has already been set.
Check if an OAuth credential has already been set .
pub fn contains(&self, t: OAuthCredential) -> bool {
        if t == OAuthCredential::Scopes {
            return !self.scopes.is_empty();
        }
        self.credentials.contains_key(t.alias())
    }
pub fn contains ( & self , t : OAuthCredential ) -> bool { if t == OAuthCredential :: Scopes { return ! self . scopes . is_empty ( ) ; } self . credentials . contains_key ( t . alias ( ) ) }
Check if an OAuth credential has already been set.
Check if an OAuth credential has already been set .
&self
t
OAuthCredential
&self
t
OAuthCredential
example
None
use graph_oauth::oauth::oauth;
None
use graph_oauth::oauth::oauthcredential;
None
let mut oauth = oauth::new();
println!("{:#?}", oauth.contains(OAuthCredential::Nonce));
```
println! ( " { : #? } " oauth . contains ( OAuthCredential :: Nonce )) ; ` ` `