pub struct SecurityScheme {
pub key: String,
pub field: RustIdent,
pub kind: SecuritySchemeKind,
pub doc: Option<String>,
}Expand description
A security scheme the client can apply to outgoing requests.
Derived from a components.securitySchemes entry. only the schemes the
client generator can carry as a stored credential are modelled here, plus an
SecuritySchemeKind::Unsupported catch-all so an operation that requires
an unmodelled scheme (for example OAuth2) can be rejected with a clear message.
Fields§
§key: StringThe scheme’s key in components.securitySchemes, matched against each
Operation::security entry.
field: RustIdentsnake_case base name for the generated credential field and the
with_<field> builder setter.
kind: SecuritySchemeKindHow the credential is carried on the request.
doc: Option<String>Doc comment derived from the scheme’s description.
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 moreSource§impl Debug for SecurityScheme
impl Debug for SecurityScheme
Source§impl PartialEq for SecurityScheme
impl PartialEq for SecurityScheme
impl StructuralPartialEq for SecurityScheme
Auto 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