pub struct EventRuleRequest {
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: ActionType,
pub action_object_type: String,
pub action_object_id: Option<Option<i64>>,
pub description: Option<String>,
pub custom_fields: Option<HashMap<String, Value>>,
pub tags: Option<Vec<NestedTagRequest>>,
}Expand description
EventRuleRequest : Adds support for custom fields and tags.
Fields§
§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: ActionTypewebhook- Webhook *script- Script *notification- Notification
action_object_type: String§action_object_id: Option<Option<i64>>§description: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl EventRuleRequest
impl EventRuleRequest
Sourcepub fn new(
object_types: Vec<String>,
name: String,
event_types: Vec<EventTypes>,
action_type: ActionType,
action_object_type: String,
) -> EventRuleRequest
pub fn new( object_types: Vec<String>, name: String, event_types: Vec<EventTypes>, action_type: ActionType, action_object_type: String, ) -> EventRuleRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for EventRuleRequest
impl Clone for EventRuleRequest
Source§fn clone(&self) -> EventRuleRequest
fn clone(&self) -> EventRuleRequest
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 EventRuleRequest
impl Debug for EventRuleRequest
Source§impl Default for EventRuleRequest
impl Default for EventRuleRequest
Source§fn default() -> EventRuleRequest
fn default() -> EventRuleRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventRuleRequest
impl<'de> Deserialize<'de> for EventRuleRequest
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 EventRuleRequest
impl PartialEq for EventRuleRequest
Source§impl Serialize for EventRuleRequest
impl Serialize for EventRuleRequest
impl StructuralPartialEq for EventRuleRequest
Auto Trait Implementations§
impl Freeze for EventRuleRequest
impl RefUnwindSafe for EventRuleRequest
impl Send for EventRuleRequest
impl Sync for EventRuleRequest
impl Unpin for EventRuleRequest
impl UnwindSafe for EventRuleRequest
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