pub enum OriginDecision {
NoPolicySet,
Permitted,
RejectedMismatch,
RejectedNoOrigin,
}Expand description
Origin-gate decision for a request against an ACL document.
Variants§
NoPolicySet
No authorisation in the ACL declares acl:origin. Permissive:
backward-compatible with pre-F4 ACLs.
Permitted
Request origin matches at least one authorisation’s pattern.
RejectedMismatch
Policies exist and the request origin does not match any of them.
RejectedNoOrigin
Policies exist and the request carries no Origin header.
Trait Implementations§
Source§impl Clone for OriginDecision
impl Clone for OriginDecision
Source§fn clone(&self) -> OriginDecision
fn clone(&self) -> OriginDecision
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 OriginDecision
impl Debug for OriginDecision
Source§impl PartialEq for OriginDecision
impl PartialEq for OriginDecision
Source§fn eq(&self, other: &OriginDecision) -> bool
fn eq(&self, other: &OriginDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OriginDecision
impl Eq for OriginDecision
impl StructuralPartialEq for OriginDecision
Auto Trait Implementations§
impl Freeze for OriginDecision
impl RefUnwindSafe for OriginDecision
impl Send for OriginDecision
impl Sync for OriginDecision
impl Unpin for OriginDecision
impl UnsafeUnpin for OriginDecision
impl UnwindSafe for OriginDecision
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