pub fn with_refresh_url<S: Into<String>>(
        authorization_url: S,
        scopes: Scopes,
        refresh_url: S,
    ) -> Self {
        Self {
            authorization_url: authorization_url.into(),
            refresh_url: Some(refresh_url.into()),
            scopes,
        }
    }
/// Construct a new implicit oauth2 flow with refresh url for getting refresh tokens.
///
/// This is essentially same as [`Implicit::new`] but allows defining `refresh_url` for the [`Implicit`]
/// oauth2 flow.
///
/// # Examples
///
/// Create a new implicit oauth2 flow with refresh token.
/// ```rust
/// # use utoipa::openapi::security::{Implicit, Scopes};
/// Implicit::with_refresh_url(
///     "https://localhost/auth/dialog",
///     Scopes::new(),
///     "https://localhost/refresh-token"
/// );
/// ```
Construct a new implicit oauth2 flow with refresh url for getting refresh tokens.
Construct a new implicit oauth2 flow with refresh url for getting refresh tokens .
pub fn with_refresh_url<S: Into<String>>(
        authorization_url: S,
        scopes: Scopes,
        refresh_url: S,
    ) -> Self {
        Self {
            authorization_url: authorization_url.into(),
            refresh_url: Some(refresh_url.into()),
            scopes,
        }
    }
pub fn with_refresh_url < S : Into < String > > ( authorization_url : S , scopes : Scopes , refresh_url : S , ) -> Self { Self { authorization_url : authorization_url . into ( ) , refresh_url : Some ( refresh_url . into ( ) ) , scopes , } }
Construct a new implicit oauth2 flow with refresh url for getting refresh tokens.
Construct a new implicit oauth2 flow with refresh url for getting refresh tokens .
authorization_url
S
scopes
Scopes
refresh_url
S
examples
Create a new implicit oauth2 flow with refresh token.
Create a new implicit oauth2 flow with refresh token .
use utoipa::openapi::security::{implicit, scopes};
None