pub struct OauthToken {
pub token_url: String,
pub refresh_url: Option<String>,
pub scopes: BTreeMap<String, String>,
}
Fields§
§token_url: String
The token URL to be used for this flow. This MUST be in the form of a URL.
refresh_url: Option<String>
The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL.
scopes: BTreeMap<String, String>
The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty.
Trait Implementations§
Source§impl Clone for OauthToken
impl Clone for OauthToken
Source§fn clone(&self) -> OauthToken
fn clone(&self) -> OauthToken
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OauthToken
impl Debug for OauthToken
Source§impl Default for OauthToken
impl Default for OauthToken
Source§fn default() -> OauthToken
fn default() -> OauthToken
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OauthToken
impl RefUnwindSafe for OauthToken
impl Send for OauthToken
impl Sync for OauthToken
impl Unpin for OauthToken
impl UnwindSafe for OauthToken
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more