pub enum ValidatorAnswer {
TruthyNonResponse,
Response(CustomResponse),
}Expand description
What a route validator returned: the reference’s truthy response (blocks with its own shape) versus a truthy non-response value (logs and emits, never blocks).
Variants§
TruthyNonResponse
A truthy non-GuardResponse value: observability only.
Response(CustomResponse)
A real response: blocks with it as-is.
Trait Implementations§
Source§impl Clone for ValidatorAnswer
impl Clone for ValidatorAnswer
Source§impl Debug for ValidatorAnswer
impl Debug for ValidatorAnswer
impl Eq for ValidatorAnswer
Source§impl PartialEq for ValidatorAnswer
impl PartialEq for ValidatorAnswer
impl StructuralPartialEq for ValidatorAnswer
Auto Trait Implementations§
impl Freeze for ValidatorAnswer
impl RefUnwindSafe for ValidatorAnswer
impl Send for ValidatorAnswer
impl Sync for ValidatorAnswer
impl Unpin for ValidatorAnswer
impl UnsafeUnpin for ValidatorAnswer
impl UnwindSafe for ValidatorAnswer
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.