pub struct Condition {
pub condition_type: i32,
pub id_type: Option<IdType>,
pub target_value: Option<AnyValue>,
pub operator: Option<i32>,
pub field: Option<String>,
pub additional_values: Option<Vec<u8>>,
}Fields§
§condition_type: i32§id_type: Option<IdType>§target_value: Option<AnyValue>§operator: Option<i32>§field: Option<String>§additional_values: Option<Vec<u8>>Implementations§
Source§impl Condition
impl Condition
Sourcepub fn condition_type(&self) -> ConditionType
pub fn condition_type(&self) -> ConditionType
Returns the enum value of condition_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_condition_type(&mut self, value: ConditionType)
pub fn set_condition_type(&mut self, value: ConditionType)
Sets condition_type to the provided enum value.
Sourcepub fn operator(&self) -> Operator
pub fn operator(&self) -> Operator
Returns the enum value of operator, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_operator(&mut self, value: Operator)
pub fn set_operator(&mut self, value: Operator)
Sets operator to the provided enum value.
Sourcepub fn field(&self) -> &str
pub fn field(&self) -> &str
Returns the value of field, or the default value if field is unset.
Sourcepub fn additional_values(&self) -> &[u8] ⓘ
pub fn additional_values(&self) -> &[u8] ⓘ
Returns the value of additional_values, or the default value if additional_values is unset.
Trait Implementations§
Source§impl Message for Condition
impl Message for Condition
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for Condition
Auto Trait Implementations§
impl Freeze for Condition
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
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