pub fn id_token(&mut self, value: IdToken) -> &mut OAuth {
        self.insert(OAuthCredential::IdToken, value.get_id_token().as_str());
        if let Some(code) = value.get_code() {
            self.access_code(code.as_str());
        }
        if let Some(state) = value.get_state() {
            let _ = self.entry(OAuthCredential::State, state.as_str());
        }
        if let Some(session_state) = value.get_session_state() {
            self.session_state(session_state.as_str());
        }
        self.insert(OAuthCredential::IdToken, value.get_id_token().as_str())
    }
/// Set id token for open id.
///
/// # Example
/// ```
/// # use graph_oauth::oauth::{OAuth, IdToken};
/// # let mut oauth = OAuth::new();
/// oauth.id_token(IdToken::new("1345", "code", "state", "session_state"));
/// ```
Set id token for open id.
Set id token for open id .
pub fn id_token(&mut self, value: IdToken) -> &mut OAuth {
        self.insert(OAuthCredential::IdToken, value.get_id_token().as_str());
        if let Some(code) = value.get_code() {
            self.access_code(code.as_str());
        }
        if let Some(state) = value.get_state() {
            let _ = self.entry(OAuthCredential::State, state.as_str());
        }
        if let Some(session_state) = value.get_session_state() {
            self.session_state(session_state.as_str());
        }
        self.insert(OAuthCredential::IdToken, value.get_id_token().as_str())
    }
pub fn id_token ( & mut self , value : IdToken ) -> & mut OAuth { self . insert ( OAuthCredential :: IdToken , value . get_id_token ( ) . as_str ( ) ) ; if let Some ( code ) = value . get_code ( ) { self . access_code ( code . as_str ( ) ) ; } if let Some ( state ) = value . get_state ( ) { let _ = self . entry ( OAuthCredential :: State , state . as_str ( ) ) ; } if let Some ( session_state ) = value . get_session_state ( ) { self . session_state ( session_state . as_str ( ) ) ; } self . insert ( OAuthCredential :: IdToken , value . get_id_token ( ) . as_str ( ) ) }
Set id token for open id.
Set id token for open id .
&mut self
value
IdToken
&mut self
value
IdToken
example
None
use graph_oauth::oauth::{oauth, idtoken};
None
let mut oauth = oauth::new();
None