pub enum HeaderTrust {
Trusted(ProtocolVersion),
Reject(TrustFailure),
}Expand description
The verdict on whether mirrored headers may drive billing for this request.
Variants§
Trusted(ProtocolVersion)
The request declares a revision that mandates header/body validation.
Reject(TrustFailure)
The request must be rejected rather than metered on its headers.
Implementations§
Source§impl HeaderTrust
impl HeaderTrust
Sourcepub const fn is_trusted(&self) -> bool
pub const fn is_trusted(&self) -> bool
Whether the headers may be used to price this request.
Trait Implementations§
Source§impl Clone for HeaderTrust
impl Clone for HeaderTrust
Source§impl Debug for HeaderTrust
impl Debug for HeaderTrust
impl Eq for HeaderTrust
Source§impl PartialEq for HeaderTrust
impl PartialEq for HeaderTrust
impl StructuralPartialEq for HeaderTrust
Auto Trait Implementations§
impl Freeze for HeaderTrust
impl RefUnwindSafe for HeaderTrust
impl Send for HeaderTrust
impl Sync for HeaderTrust
impl Unpin for HeaderTrust
impl UnsafeUnpin for HeaderTrust
impl UnwindSafe for HeaderTrust
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