/// Create a new instance for code flow.
///
/// # See
/// [Microsoft Code Flow Authorizaiton](https://docs.microsoft.com/en-us/onedrive/developer/rest-api/getting-started/msa-oauth?view=odsp-graph-online)
///
/// # Example
/// ```
/// # use graph_oauth::oauth::OAuth;
/// # let mut oauth = OAuth::new();
/// let open_id = oauth.build().code_flow();
/// ```
Create a new instance for code flow.
Create a new instance for code flow .
pub fn code_flow(self) -> AccessTokenGrant {
        AccessTokenGrant {
            oauth: self.oauth,
            grant: GrantType::CodeFlow,
        }
    }
pub fn code_flow ( self ) -> AccessTokenGrant { AccessTokenGrant { oauth : self . oauth , grant : GrantType :: CodeFlow , } }
Create a new instance for code flow.
Create a new instance for code flow .
self
see
[Microsoft Code Flow Authorizaiton]
[ Microsoft Code Flow Authorizaiton ]
example
None
use graph_oauth::oauth::oauth;
None
let mut oauth = oauth::new();
let open_id = oauth.build().code_flow();
```
let open_id = oauth . build () . code_flow () ; ` ` `