pub enum CustomRequestVerdict {
Allowed,
Blocked {
status: Option<u16>,
function: String,
},
}Expand description
What decide_custom_request decided.
Variants§
Allowed
The check returned nothing: allow.
Blocked
The check returned a response: the reference emits
custom_request_check with the response status (or "unknown")
and the function name (or "anonymous"), then applies the
response modifier and returns it.
Trait Implementations§
Source§impl Clone for CustomRequestVerdict
impl Clone for CustomRequestVerdict
Source§impl Debug for CustomRequestVerdict
impl Debug for CustomRequestVerdict
impl Eq for CustomRequestVerdict
Source§impl PartialEq for CustomRequestVerdict
impl PartialEq for CustomRequestVerdict
impl StructuralPartialEq for CustomRequestVerdict
Auto Trait Implementations§
impl Freeze for CustomRequestVerdict
impl RefUnwindSafe for CustomRequestVerdict
impl Send for CustomRequestVerdict
impl Sync for CustomRequestVerdict
impl Unpin for CustomRequestVerdict
impl UnsafeUnpin for CustomRequestVerdict
impl UnwindSafe for CustomRequestVerdict
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.