pub struct SystemCondition {
pub field: SystemConditionField,
pub field_source: SystemConditionFieldSource,
pub operator: ConditionOperator,
pub value: ConditionValue,
}Expand description
System attributes, including current unix timestamp (in seconds).
JSON schema
{
"title": "system",
"description": "System attributes, including current unix timestamp (in
seconds).",
"type": "object",
"required": [
"field",
"field_source",
"operator",
"value"
],
"properties": {
"field": {
"type": "string",
"enum": [
"current_unix_timestamp"
]
},
"field_source": {
"type": "string",
"enum": [
"system"
]
},
"operator": {
"$ref": "#/components/schemas/ConditionOperator"
},
"value": {
"$ref": "#/components/schemas/ConditionValue"
}
}
}Fields§
§field: SystemConditionField§field_source: SystemConditionFieldSource§operator: ConditionOperator§value: ConditionValueTrait Implementations§
Source§impl Clone for SystemCondition
impl Clone for SystemCondition
Source§fn clone(&self) -> SystemCondition
fn clone(&self) -> SystemCondition
Returns a duplicate of the value. Read more
1.0.0 · 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 SystemCondition
impl Debug for SystemCondition
Source§impl<'de> Deserialize<'de> for SystemCondition
impl<'de> Deserialize<'de> for SystemCondition
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 From<&SystemCondition> for SystemCondition
impl From<&SystemCondition> for SystemCondition
Source§fn from(value: &SystemCondition) -> Self
fn from(value: &SystemCondition) -> Self
Converts to this type from the input type.
Source§impl From<SystemCondition> for PolicyCondition
impl From<SystemCondition> for PolicyCondition
Source§fn from(value: SystemCondition) -> Self
fn from(value: SystemCondition) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SystemCondition
impl RefUnwindSafe for SystemCondition
impl Send for SystemCondition
impl Sync for SystemCondition
impl Unpin for SystemCondition
impl UnwindSafe for SystemCondition
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