pub struct EventRule {Show 18 fields
pub id: Option<i32>,
pub url: Option<String>,
pub display_url: Option<String>,
pub display: Option<String>,
pub object_types: Vec<String>,
pub name: String,
pub enabled: Option<bool>,
pub event_types: Vec<EventTypes>,
pub conditions: Option<Option<Value>>,
pub action_type: Box<EventRuleActionType>,
pub action_object_type: String,
pub action_object_id: Option<Option<i64>>,
pub action_object: Option<HashMap<String, Value>>,
pub description: Option<String>,
pub custom_fields: Option<HashMap<String, Value>>,
pub tags: Option<Vec<NestedTag>>,
pub created: Option<Option<String>>,
pub last_updated: Option<Option<String>>,
}Expand description
EventRule : Adds support for custom fields and tags.
Fields§
§id: Option<i32>§url: Option<String>§display_url: Option<String>§display: Option<String>§object_types: Vec<String>§name: String§enabled: Option<bool>§event_types: Vec<EventTypes>The types of event which will trigger this rule.
conditions: Option<Option<Value>>A set of conditions which determine whether the event will be generated.
action_type: Box<EventRuleActionType>§action_object_type: String§action_object_id: Option<Option<i64>>§action_object: Option<HashMap<String, Value>>§description: Option<String>§custom_fields: Option<HashMap<String, Value>>§created: Option<Option<String>>§last_updated: Option<Option<String>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventRule
impl<'de> Deserialize<'de> for EventRule
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
impl StructuralPartialEq for EventRule
Auto Trait Implementations§
impl Freeze for EventRule
impl RefUnwindSafe for EventRule
impl Send for EventRule
impl Sync for EventRule
impl Unpin for EventRule
impl UnwindSafe for EventRule
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