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


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