pub fn new<A: Into<String>, T: Into<String>>(
        authorization_url: A,
        token_url: T,
        scopes: Scopes,
    ) -> Self {
        Self {
            authorization_url: authorization_url.into(),
            token_url: token_url.into(),
            refresh_url: None,
            scopes,
        }
    }
/// Construct a new authorization code oauth flow.
///
/// Accpets three arguments: one which is authorization url, two a token url and
/// three a map of scopes for oauth flow.
///
/// # Examples
///
/// Create new authorization code flow with scopes.
/// ```rust
/// # use utoipa::openapi::security::{AuthorizationCode, Scopes};
/// AuthorizationCode::new(
///     "https://localhost/auth/dialog",
///     "https://localhost/token",
///     Scopes::from_iter([
///         ("edit:items", "edit my items"),
///         ("read:items", "read my items")
///     ]),
/// );
/// ```
///
/// Create new authorization code flow without any scopes.
/// ```rust
/// # use utoipa::openapi::security::{AuthorizationCode, Scopes};
/// AuthorizationCode::new(
///     "https://localhost/auth/dialog",
///     "https://localhost/token",
///     Scopes::new(),
/// );
/// ```
Construct a new authorization code oauth flow.
Accpets three arguments: one which is authorization url, two a token url and
three a map of scopes for oauth flow.
Construct a new authorization code oauth flow . Accpets three arguments : one which is authorization url two a token url and three a map of scopes for oauth flow .
pub fn new<A: Into<String>, T: Into<String>>(
        authorization_url: A,
        token_url: T,
        scopes: Scopes,
    ) -> Self {
        Self {
            authorization_url: authorization_url.into(),
            token_url: token_url.into(),
            refresh_url: None,
            scopes,
        }
    }
pub fn new < A : Into < String > , T : Into < String > > ( authorization_url : A , token_url : T , scopes : Scopes , ) -> Self { Self { authorization_url : authorization_url . into ( ) , token_url : token_url . into ( ) , refresh_url : None , scopes , } }
Construct a new authorization code oauth flow.
Construct a new authorization code oauth flow .
authorization_url
A
token_url
T
scopes
Scopes
examples
Create new authorization code flow with scopes.
Create new authorization code flow with scopes .
use utoipa::openapi::security::{authorizationcode, scopes};


Create new authorization code flow without any scopes.
Create new authorization code flow without any scopes .
use utoipa::openapi::security::{authorizationcode, scopes};
None