pub struct OpenApiOAuthFlows {
pub implicit: Option<OpenApiOAuthFlow>,
pub password: Option<OpenApiOAuthFlow>,
pub client_credentials: Option<OpenApiOAuthFlow>,
pub authorization_code: Option<OpenApiOAuthFlow>,
}Expand description
OpenAPI OAuth flow map.
Fields§
§implicit: Option<OpenApiOAuthFlow>§password: Option<OpenApiOAuthFlow>§client_credentials: Option<OpenApiOAuthFlow>Implementations§
Source§impl OpenApiOAuthFlows
impl OpenApiOAuthFlows
pub fn new() -> Self
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_implicit(self, flow: OpenApiOAuthFlow) -> Self
pub fn with_password(self, flow: OpenApiOAuthFlow) -> Self
pub fn with_client_credentials(self, flow: OpenApiOAuthFlow) -> Self
Trait Implementations§
Source§impl Clone for OpenApiOAuthFlows
impl Clone for OpenApiOAuthFlows
Source§fn clone(&self) -> OpenApiOAuthFlows
fn clone(&self) -> OpenApiOAuthFlows
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 OpenApiOAuthFlows
impl Debug for OpenApiOAuthFlows
Source§impl Default for OpenApiOAuthFlows
impl Default for OpenApiOAuthFlows
Source§fn default() -> OpenApiOAuthFlows
fn default() -> OpenApiOAuthFlows
Returns the “default value” for a type. Read more
impl Eq for OpenApiOAuthFlows
Source§impl PartialEq for OpenApiOAuthFlows
impl PartialEq for OpenApiOAuthFlows
Source§impl Serialize for OpenApiOAuthFlows
impl Serialize for OpenApiOAuthFlows
impl StructuralPartialEq for OpenApiOAuthFlows
Auto Trait Implementations§
impl Freeze for OpenApiOAuthFlows
impl RefUnwindSafe for OpenApiOAuthFlows
impl Send for OpenApiOAuthFlows
impl Sync for OpenApiOAuthFlows
impl Unpin for OpenApiOAuthFlows
impl UnsafeUnpin for OpenApiOAuthFlows
impl UnwindSafe for OpenApiOAuthFlows
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