pub struct FieldComparison {
pub field: String,
pub operator: ComparisonOp,
pub value: Option<Value>,
}Expand description
A comparison of a workflow data field against an expected value.
Fields§
§field: StringDot-separated field path, e.g. “.outputs.docker_started”.
operator: ComparisonOpThe comparison operator.
value: Option<Value>The value to compare against. Required for all operators except IsNull/IsNotNull.
Trait Implementations§
Source§impl Clone for FieldComparison
impl Clone for FieldComparison
Source§fn clone(&self) -> FieldComparison
fn clone(&self) -> FieldComparison
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 FieldComparison
impl Debug for FieldComparison
Source§impl<'de> Deserialize<'de> for FieldComparison
impl<'de> Deserialize<'de> for FieldComparison
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FieldComparison
impl PartialEq for FieldComparison
Source§fn eq(&self, other: &FieldComparison) -> bool
fn eq(&self, other: &FieldComparison) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FieldComparison
impl Serialize for FieldComparison
impl StructuralPartialEq for FieldComparison
Auto Trait Implementations§
impl Freeze for FieldComparison
impl RefUnwindSafe for FieldComparison
impl Send for FieldComparison
impl Sync for FieldComparison
impl Unpin for FieldComparison
impl UnsafeUnpin for FieldComparison
impl UnwindSafe for FieldComparison
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