pub struct SecurityScheme {
pub name: Option<String>,
pub type_: String,
pub in_: Option<String>,
pub flow: Option<String>,
pub auth_url: Option<String>,
pub token_url: Option<String>,
pub scopes: BTreeMap<String, String>,
pub description: Option<String>,
}
Expand description
Security Scheme object.
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-scheme-object
Fields§
§name: Option<String>
§type_: String
§in_: Option<String>
§flow: Option<String>
§auth_url: Option<String>
§token_url: Option<String>
§scopes: BTreeMap<String, String>
§description: Option<String>
Implementations§
source§impl SecurityScheme
impl SecurityScheme
sourcepub fn update_definitions(
self,
name: &str,
map: &mut BTreeMap<String, SecurityScheme>,
)
pub fn update_definitions( self, name: &str, map: &mut BTreeMap<String, SecurityScheme>, )
Adds or updates this definition to the map of security definitions.
sourcepub fn append_map(
old: BTreeMap<String, SecurityScheme>,
new: &mut BTreeMap<String, SecurityScheme>,
)
pub fn append_map( old: BTreeMap<String, SecurityScheme>, new: &mut BTreeMap<String, SecurityScheme>, )
Appends one map to the other whilst merging individual scheme properties.
Trait Implementations§
source§impl Clone for SecurityScheme
impl Clone for SecurityScheme
source§fn clone(&self) -> SecurityScheme
fn clone(&self) -> SecurityScheme
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 SecurityScheme
impl Debug for SecurityScheme
source§impl Default for SecurityScheme
impl Default for SecurityScheme
source§fn default() -> SecurityScheme
fn default() -> SecurityScheme
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SecurityScheme
impl<'de> Deserialize<'de> for SecurityScheme
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SecurityScheme> for SecurityScheme
impl From<SecurityScheme> for SecurityScheme
source§fn from(v2: SecurityScheme) -> Self
fn from(v2: SecurityScheme) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SecurityScheme
impl RefUnwindSafe for SecurityScheme
impl Send for SecurityScheme
impl Sync for SecurityScheme
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)