pub enum FieldOutcome {
Pass,
Replace(Value),
Omit,
Deny {
reason: String,
stage_index: usize,
},
}Expand description
Result of running a pipeline against one field’s value.
Pass: every stage succeeded; the original value should be kept.
Replace: a transform produced a new value (also covers conditional
redact firing).
Omit: an omit stage fired; the field should be dropped from output.
Deny: a validator failed; pipeline halted; the route should deny.
Variants§
Trait Implementations§
Source§impl Clone for FieldOutcome
impl Clone for FieldOutcome
Source§fn clone(&self) -> FieldOutcome
fn clone(&self) -> FieldOutcome
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 FieldOutcome
impl Debug for FieldOutcome
Source§impl PartialEq for FieldOutcome
impl PartialEq for FieldOutcome
Source§fn eq(&self, other: &FieldOutcome) -> bool
fn eq(&self, other: &FieldOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldOutcome
Auto Trait Implementations§
impl Freeze for FieldOutcome
impl RefUnwindSafe for FieldOutcome
impl Send for FieldOutcome
impl Sync for FieldOutcome
impl Unpin for FieldOutcome
impl UnsafeUnpin for FieldOutcome
impl UnwindSafe for FieldOutcome
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