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