pub struct ComparisonTask {
pub op: Option<i32>,
pub on_true: Option<OracleJob>,
pub on_true_value: Option<String>,
pub on_false: Option<OracleJob>,
pub on_false_value: Option<String>,
pub on_failure: Option<OracleJob>,
pub on_failure_value: Option<String>,
pub lhs: Option<Lhs>,
pub rhs: Option<Rhs>,
}
Fields§
§op: Option<i32>
/ The type of operator to use on the left (lhs) and right (rhs) operand.
on_true: Option<OracleJob>
/ The OracleJob to execute if the condition evaluates to true.
on_true_value: Option<String>
/ The result to use if the condition evaluates to true. Can be set to a ${CACHE_KEY}
.
on_false: Option<OracleJob>
/ The OracleJob to execute if the condition evaluates to false.
on_false_value: Option<String>
/ The result to use if the condition evaluates to false. Can be set to a ${CACHE_KEY}
.
on_failure: Option<OracleJob>
/ The OracleJob to execute if the condition fails to evaluate.
on_failure_value: Option<String>
/ The result to use if the condition fails to evaluate. Can be set to a ${CACHE_KEY}
.
lhs: Option<Lhs>
§rhs: Option<Rhs>
Implementations§
Source§impl ComparisonTask
impl ComparisonTask
Sourcepub fn op(&self) -> Operation
pub fn op(&self) -> Operation
Returns the enum value of op
, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn on_true_value(&self) -> &str
pub fn on_true_value(&self) -> &str
Returns the value of on_true_value
, or the default value if on_true_value
is unset.
Sourcepub fn on_false_value(&self) -> &str
pub fn on_false_value(&self) -> &str
Returns the value of on_false_value
, or the default value if on_false_value
is unset.
Sourcepub fn on_failure_value(&self) -> &str
pub fn on_failure_value(&self) -> &str
Returns the value of on_failure_value
, or the default value if on_failure_value
is unset.
Trait Implementations§
Source§impl Clone for ComparisonTask
impl Clone for ComparisonTask
Source§fn clone(&self) -> ComparisonTask
fn clone(&self) -> ComparisonTask
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ComparisonTask
impl Debug for ComparisonTask
Source§impl Default for ComparisonTask
impl Default for ComparisonTask
Source§impl Message for ComparisonTask
impl Message for ComparisonTask
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.