pub struct OpenApiOAuthFlow {
pub authorization_url: Option<String>,
pub token_url: Option<String>,
pub refresh_url: Option<String>,
pub scopes: BTreeMap<String, String>,
}Expand description
OpenAPI OAuth flow metadata.
Fields§
§token_url: Option<String>§refresh_url: Option<String>§scopes: BTreeMap<String, String>Implementations§
Source§impl OpenApiOAuthFlow
impl OpenApiOAuthFlow
pub fn implicit<I, K, V>( authorization_url: impl Into<String>, scopes: I, ) -> Self
pub fn password<I, K, V>(token_url: impl Into<String>, scopes: I) -> Self
pub fn client_credentials<I, K, V>( token_url: impl Into<String>, scopes: I, ) -> Self
pub fn with_refresh_url(self, refresh_url: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for OpenApiOAuthFlow
impl Clone for OpenApiOAuthFlow
Source§fn clone(&self) -> OpenApiOAuthFlow
fn clone(&self) -> OpenApiOAuthFlow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenApiOAuthFlow
impl Debug for OpenApiOAuthFlow
impl Eq for OpenApiOAuthFlow
Source§impl PartialEq for OpenApiOAuthFlow
impl PartialEq for OpenApiOAuthFlow
Source§impl Serialize for OpenApiOAuthFlow
impl Serialize for OpenApiOAuthFlow
impl StructuralPartialEq for OpenApiOAuthFlow
Auto Trait Implementations§
impl Freeze for OpenApiOAuthFlow
impl RefUnwindSafe for OpenApiOAuthFlow
impl Send for OpenApiOAuthFlow
impl Sync for OpenApiOAuthFlow
impl Unpin for OpenApiOAuthFlow
impl UnsafeUnpin for OpenApiOAuthFlow
impl UnwindSafe for OpenApiOAuthFlow
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