pub enum RequestAuthState {
Absent,
Present,
}Expand description
Whether and how an Authorization-bearing credential was present on a request.
Tracked per-request so the auth-block classifier can distinguish “no credential” from “credential present but rejected” — they correspond to different operator actions. The credential value itself is never retained.
Variants§
Absent
No Authorization header on the request.
Present
Authorization header present (value not retained — security policy).
Implementations§
Source§impl RequestAuthState
impl RequestAuthState
Sourcepub fn from_request(req: &ProbeDefinition) -> Self
pub fn from_request(req: &ProbeDefinition) -> Self
Infers auth state from the Authorization header in req.
Trait Implementations§
Source§impl Clone for RequestAuthState
impl Clone for RequestAuthState
Source§fn clone(&self) -> RequestAuthState
fn clone(&self) -> RequestAuthState
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 RequestAuthState
impl Debug for RequestAuthState
Source§impl PartialEq for RequestAuthState
impl PartialEq for RequestAuthState
Source§fn eq(&self, other: &RequestAuthState) -> bool
fn eq(&self, other: &RequestAuthState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for RequestAuthState
impl Eq for RequestAuthState
impl StructuralPartialEq for RequestAuthState
Auto Trait Implementations§
impl Freeze for RequestAuthState
impl RefUnwindSafe for RequestAuthState
impl Send for RequestAuthState
impl Sync for RequestAuthState
impl Unpin for RequestAuthState
impl UnsafeUnpin for RequestAuthState
impl UnwindSafe for RequestAuthState
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