pub enum AuthScheme {
ApiKey {
name: String,
location: String,
},
Http {
scheme: String,
},
OAuth2 {
scopes: Vec<String>,
},
OpenIdConnect {
discovery_url: Option<String>,
},
Other {
name: String,
},
}Expand description
A resolved credential requirement. Unknown schemes are deliberately kept
as Other so targets can report a useful configuration error rather than
quietly omitting security.
Variants§
Trait Implementations§
Source§impl Clone for AuthScheme
impl Clone for AuthScheme
Source§impl Debug for AuthScheme
impl Debug for AuthScheme
impl Eq for AuthScheme
Source§impl PartialEq for AuthScheme
impl PartialEq for AuthScheme
impl StructuralPartialEq for AuthScheme
Auto Trait Implementations§
impl Freeze for AuthScheme
impl RefUnwindSafe for AuthScheme
impl Send for AuthScheme
impl Sync for AuthScheme
impl Unpin for AuthScheme
impl UnsafeUnpin for AuthScheme
impl UnwindSafe for AuthScheme
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