pub enum ReferrerVerdict {
Allowed,
Missing,
Invalid {
referrer: String,
},
}Expand description
What decide decided.
Variants§
Allowed
The referer host is allowed (or the route required no referrer).
Missing
The referer header is absent or empty: the reference’s
"Referrer required" shape.
Invalid
The referer is present but its host is not allowed: the reference’s
"Invalid referrer" shape, carrying the raw value (the stage
redacts it for logs and events, exactly the reference).
Trait Implementations§
Source§impl Clone for ReferrerVerdict
impl Clone for ReferrerVerdict
Source§impl Debug for ReferrerVerdict
impl Debug for ReferrerVerdict
impl Eq for ReferrerVerdict
Source§impl PartialEq for ReferrerVerdict
impl PartialEq for ReferrerVerdict
impl StructuralPartialEq for ReferrerVerdict
Auto Trait Implementations§
impl Freeze for ReferrerVerdict
impl RefUnwindSafe for ReferrerVerdict
impl Send for ReferrerVerdict
impl Sync for ReferrerVerdict
impl Unpin for ReferrerVerdict
impl UnsafeUnpin for ReferrerVerdict
impl UnwindSafe for ReferrerVerdict
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.