pub struct PatchedWritableEventRuleRequest {
pub object_types: Option<Vec<String>>,
pub name: Option<String>,
pub enabled: Option<bool>,
pub event_types: Option<Vec<EventTypes>>,
pub conditions: Option<Option<Value>>,
pub action_type: Option<ActionType>,
pub action_object_type: Option<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
PatchedWritableEventRuleRequest : Adds support for custom fields and tags.
Fields§
§object_types: Option<Vec<String>>§name: Option<String>§enabled: Option<bool>§event_types: Option<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: Option<ActionType>webhook- Webhook *script- Script *notification- Notification
action_object_type: Option<String>§action_object_id: Option<Option<i64>>§description: Option<String>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl PatchedWritableEventRuleRequest
impl PatchedWritableEventRuleRequest
Sourcepub fn new() -> PatchedWritableEventRuleRequest
pub fn new() -> PatchedWritableEventRuleRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for PatchedWritableEventRuleRequest
impl Clone for PatchedWritableEventRuleRequest
Source§fn clone(&self) -> PatchedWritableEventRuleRequest
fn clone(&self) -> PatchedWritableEventRuleRequest
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 Default for PatchedWritableEventRuleRequest
impl Default for PatchedWritableEventRuleRequest
Source§fn default() -> PatchedWritableEventRuleRequest
fn default() -> PatchedWritableEventRuleRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchedWritableEventRuleRequest
impl<'de> Deserialize<'de> for PatchedWritableEventRuleRequest
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 PatchedWritableEventRuleRequest
impl PartialEq for PatchedWritableEventRuleRequest
Source§fn eq(&self, other: &PatchedWritableEventRuleRequest) -> bool
fn eq(&self, other: &PatchedWritableEventRuleRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PatchedWritableEventRuleRequest
Auto Trait Implementations§
impl Freeze for PatchedWritableEventRuleRequest
impl RefUnwindSafe for PatchedWritableEventRuleRequest
impl Send for PatchedWritableEventRuleRequest
impl Sync for PatchedWritableEventRuleRequest
impl Unpin for PatchedWritableEventRuleRequest
impl UnwindSafe for PatchedWritableEventRuleRequest
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