pub struct ReadContextRuleMatchExpressionsInner {
pub source: Source,
pub key: String,
pub operator: Operator,
pub values: Option<Vec<String>>,
pub value: Option<String>,
}Fields§
§source: Source§key: String§operator: OperatorWhat to do with the value identified by key. In and NotIn compare with values, DateDeltaLessThan and DateDeltaGreaterThan treat the value as an RFC3339 date, and measure if the now()-date is less than or greater than the time span expressed in value.
values: Option<Vec<String>>to be used with In and NotIn operators
value: Option<String>To be used with DateDelta operators. A time span in 23d4h5m32s notation. It does not support interval shorthands greater than a day, so to express 3 months, for example, use 90d. Positive time spans indicate the date appeared in the past. Negative time spans indicate the date appears in the future.
Implementations§
Trait Implementations§
Source§impl Clone for ReadContextRuleMatchExpressionsInner
impl Clone for ReadContextRuleMatchExpressionsInner
Source§fn clone(&self) -> ReadContextRuleMatchExpressionsInner
fn clone(&self) -> ReadContextRuleMatchExpressionsInner
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 Default for ReadContextRuleMatchExpressionsInner
impl Default for ReadContextRuleMatchExpressionsInner
Source§fn default() -> ReadContextRuleMatchExpressionsInner
fn default() -> ReadContextRuleMatchExpressionsInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReadContextRuleMatchExpressionsInner
impl<'de> Deserialize<'de> for ReadContextRuleMatchExpressionsInner
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 ReadContextRuleMatchExpressionsInner
impl PartialEq for ReadContextRuleMatchExpressionsInner
Source§fn eq(&self, other: &ReadContextRuleMatchExpressionsInner) -> bool
fn eq(&self, other: &ReadContextRuleMatchExpressionsInner) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReadContextRuleMatchExpressionsInner
Auto Trait Implementations§
impl Freeze for ReadContextRuleMatchExpressionsInner
impl RefUnwindSafe for ReadContextRuleMatchExpressionsInner
impl Send for ReadContextRuleMatchExpressionsInner
impl Sync for ReadContextRuleMatchExpressionsInner
impl Unpin for ReadContextRuleMatchExpressionsInner
impl UnsafeUnpin for ReadContextRuleMatchExpressionsInner
impl UnwindSafe for ReadContextRuleMatchExpressionsInner
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