pub fn new<S: Into<String>>(authorization_url: S, scopes: Scopes) -> Self {
        Self {
            authorization_url: authorization_url.into(),
            refresh_url: None,
            scopes,
        }
    }
/// Construct a new implicit oauth2 flow.
///
/// Accepts two arguments: one which is authorization url and second map of scopes. Scopes can
/// also be an empty map.
///
/// # Examples
///
/// Create new implicit flow with scopes.
/// ```rust
/// # use utoipa::openapi::security::{Implicit, Scopes};
/// Implicit::new(
///     "https://localhost/auth/dialog",
///     Scopes::from_iter([
///         ("edit:items", "edit my items"),
///         ("read:items", "read my items")
///     ]),
/// );
/// ```
///
/// Create new implicit flow without any scopes.
/// ```rust
/// # use utoipa::openapi::security::{Implicit, Scopes};
/// Implicit::new(
///     "https://localhost/auth/dialog",
///     Scopes::new(),
/// );
/// ```
Construct a new implicit oauth2 flow.
Accepts two arguments: one which is authorization url and second map of scopes. Scopes can
also be an empty map.
Construct a new implicit oauth2 flow . Accepts two arguments : one which is authorization url and second map of scopes . Scopes can also be an empty map .
pub fn new<S: Into<String>>(authorization_url: S, scopes: Scopes) -> Self {
        Self {
            authorization_url: authorization_url.into(),
            refresh_url: None,
            scopes,
        }
    }
pub fn new < S : Into < String > > ( authorization_url : S , scopes : Scopes ) -> Self { Self { authorization_url : authorization_url . into ( ) , refresh_url : None , scopes , } }
Construct a new implicit oauth2 flow.
Construct a new implicit oauth2 flow .
authorization_url
S
scopes
Scopes
examples
Create new implicit flow with scopes.
Create new implicit flow with scopes .
use utoipa::openapi::security::{implicit, scopes};


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