pub enum SecurityScheme {
ApiKey {
name: String,
location: ApiKeyLocation,
},
Http {
scheme: String,
bearer_format: Option<String>,
},
OpenIdConnect {
url: String,
},
OAuth2(Box<OAuthFlows>),
}Variants§
Implementations§
Source§impl SecurityScheme
impl SecurityScheme
pub fn api_key( name: impl Into<String>, location: ApiKeyLocation, ) -> SecurityScheme
pub fn http(scheme: impl Into<String>) -> SecurityScheme
pub fn bearer() -> SecurityScheme
pub fn bearer_format(self, format: impl Into<String>) -> SecurityScheme
pub fn open_id_connect(url: impl Into<String>) -> SecurityScheme
pub fn oauth2(flows: OAuthFlows) -> SecurityScheme
Trait Implementations§
Source§impl Clone for SecurityScheme
impl Clone for SecurityScheme
Source§fn clone(&self) -> SecurityScheme
fn clone(&self) -> SecurityScheme
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 moreAuto Trait Implementations§
impl Freeze for SecurityScheme
impl RefUnwindSafe for SecurityScheme
impl Send for SecurityScheme
impl Sync for SecurityScheme
impl Unpin for SecurityScheme
impl UnsafeUnpin for SecurityScheme
impl UnwindSafe for SecurityScheme
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