pub struct SecurityMetadata {
pub name: String,
pub scheme: SecurityScheme,
pub scopes: Vec<String>,
pub required: bool,
}Expand description
Registration-time extractor metadata; this is not a serialized OpenAPI object.
Fields§
§name: StringComponent name referenced by this extractor.
scheme: SecuritySchemeCorresponding scheme definition.
scopes: Vec<String>Required OAuth2 scopes, or an empty list for unscoped authentication.
required: boolWhether this extractor requires successful authentication extraction.
Implementations§
Source§impl SecurityMetadata
impl SecurityMetadata
Sourcepub fn new(name: impl Into<String>, scheme: SecurityScheme) -> Self
pub fn new(name: impl Into<String>, scheme: SecurityScheme) -> Self
Create required extractor metadata with no required scopes.
Trait Implementations§
Source§impl Clone for SecurityMetadata
impl Clone for SecurityMetadata
Source§impl Debug for SecurityMetadata
impl Debug for SecurityMetadata
impl Eq for SecurityMetadata
Source§impl PartialEq for SecurityMetadata
impl PartialEq for SecurityMetadata
impl StructuralPartialEq for SecurityMetadata
Auto Trait Implementations§
impl Forget for SecurityMetadata
impl Freeze for SecurityMetadata
impl Move for SecurityMetadata
impl RefUnwindSafe for SecurityMetadata
impl Send for SecurityMetadata
impl Sync for SecurityMetadata
impl Unpin for SecurityMetadata
impl UnsafeUnpin for SecurityMetadata
impl UnwindSafe for SecurityMetadata
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