pub fn with_refresh_url<S: Into<String>>(token_url: S, scopes: Scopes, refresh_url: S) -> Self {
        Self {
            token_url: token_url.into(),
            refresh_url: Some(refresh_url.into()),
            scopes,
        }
    }
/// Construct a new password oauth flow with additional refresh url.
///
/// This is essentially same as [`Password::new`] but allows defining thrird parameter for `refresh_url`
/// for fetching refresh tokens.
///
/// # Examples
///
/// Create new password flow with refresh url.
/// ```rust
/// # use utoipa::openapi::security::{Password, Scopes};
/// Password::with_refresh_url(
///     "https://localhost/token",
///     Scopes::from_iter([
///         ("edit:items", "edit my items"),
///         ("read:items", "read my items")
///     ]),
///     "https://localhost/refres-token"
/// );
/// ```
Construct a new password oauth flow with additional refresh url.
This is essentially same as [`Password::new`] but allows defining thrird parameter for `refresh_url`
for fetching refresh tokens.
Construct a new password oauth flow with additional refresh url . This is essentially same as [ ` Password :: new ` ] but allows defining thrird parameter for ` refresh_url ` for fetching refresh tokens .
pub fn with_refresh_url<S: Into<String>>(token_url: S, scopes: Scopes, refresh_url: S) -> Self {
        Self {
            token_url: token_url.into(),
            refresh_url: Some(refresh_url.into()),
            scopes,
        }
    }
pub fn with_refresh_url < S : Into < String > > ( token_url : S , scopes : Scopes , refresh_url : S ) -> Self { Self { token_url : token_url . into ( ) , refresh_url : Some ( refresh_url . into ( ) ) , scopes , } }
Construct a new password oauth flow with additional refresh url.
Construct a new password oauth flow with additional refresh url .
token_url
S
scopes
Scopes
refresh_url
S
examples
Create new password flow with refresh url.
Create new password flow with refresh url .
use utoipa::openapi::security::{password, scopes};
None