pub struct BulkEventRuleRequest {Show 13 fields
pub id: i32,
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 owner: Option<Option<Box<AsnRangeRequestOwner>>>,
pub tags: Option<Vec<NestedTagRequest>>,
}Expand description
BulkEventRuleRequest : Adds an owner field for models which have a ForeignKey to users.Owner.
Fields§
§id: i32§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>>§owner: Option<Option<Box<AsnRangeRequestOwner>>>Implementations§
Source§impl BulkEventRuleRequest
impl BulkEventRuleRequest
Sourcepub fn new(
id: i32,
object_types: Vec<String>,
name: String,
event_types: Vec<EventTypes>,
action_type: ActionType,
action_object_type: String,
) -> BulkEventRuleRequest
pub fn new( id: i32, object_types: Vec<String>, name: String, event_types: Vec<EventTypes>, action_type: ActionType, action_object_type: String, ) -> BulkEventRuleRequest
Adds an owner field for models which have a ForeignKey to users.Owner.
Trait Implementations§
Source§impl Clone for BulkEventRuleRequest
impl Clone for BulkEventRuleRequest
Source§fn clone(&self) -> BulkEventRuleRequest
fn clone(&self) -> BulkEventRuleRequest
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 Debug for BulkEventRuleRequest
impl Debug for BulkEventRuleRequest
Source§impl Default for BulkEventRuleRequest
impl Default for BulkEventRuleRequest
Source§fn default() -> BulkEventRuleRequest
fn default() -> BulkEventRuleRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BulkEventRuleRequest
impl<'de> Deserialize<'de> for BulkEventRuleRequest
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 BulkEventRuleRequest
impl PartialEq for BulkEventRuleRequest
Source§impl Serialize for BulkEventRuleRequest
impl Serialize for BulkEventRuleRequest
impl StructuralPartialEq for BulkEventRuleRequest
Auto Trait Implementations§
impl Freeze for BulkEventRuleRequest
impl RefUnwindSafe for BulkEventRuleRequest
impl Send for BulkEventRuleRequest
impl Sync for BulkEventRuleRequest
impl Unpin for BulkEventRuleRequest
impl UnsafeUnpin for BulkEventRuleRequest
impl UnwindSafe for BulkEventRuleRequest
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