#[non_exhaustive]pub struct AuthConfigSummary {
pub enabled: bool,
pub bearer: bool,
pub mtls: bool,
pub oauth: bool,
pub api_keys: Vec<ApiKeySummary>,
}Expand description
Snapshot of the enabled authentication methods for admin endpoints.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enabled: boolMaster enabled flag from config.
bearer: boolWhether API-key bearer auth is configured.
mtls: boolWhether mTLS client auth is configured.
oauth: boolWhether OAuth JWT validation is configured.
api_keys: Vec<ApiKeySummary>Current API-key list (no hashes).
Trait Implementations§
Source§impl Clone for AuthConfigSummary
impl Clone for AuthConfigSummary
Source§fn clone(&self) -> AuthConfigSummary
fn clone(&self) -> AuthConfigSummary
Returns a duplicate 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 AuthConfigSummary
impl Debug for AuthConfigSummary
Auto Trait Implementations§
impl Freeze for AuthConfigSummary
impl RefUnwindSafe for AuthConfigSummary
impl Send for AuthConfigSummary
impl Sync for AuthConfigSummary
impl Unpin for AuthConfigSummary
impl UnsafeUnpin for AuthConfigSummary
impl UnwindSafe for AuthConfigSummary
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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