Struct asana::models::webhook_filter::WebhookFilter
source · [−]pub struct WebhookFilter {
pub resource_type: Option<String>,
pub resource_subtype: Option<String>,
pub action: Option<String>,
pub fields: Option<Vec<String>>,
}
Expand description
WebhookFilter : A WebhookFilter can be passed on creation of a webhook in order to filter the types of actions that trigger delivery of an Event
Fields
resource_type: Option<String>
The type of the resource which created the event when modified; for example, to filter to changes on regular tasks this field should be set to task
.
resource_subtype: Option<String>
The resource subtype of the resource that the filter applies to. This should be set to the same value as is returned on the resource_subtype
field on the resources themselves.
action: Option<String>
The type of change on the resource to pass through the filter. For more information refer to Event.action
in the Event schema. This can be one of changed
, added
, removed
, deleted
, and undeleted
depending on the nature of what has occurred on the resource.
fields: Option<Vec<String>>
Conditional. A whitelist of fields for events which will pass the filter when the resource is changed. These can be any combination of the fields on the resources themselves. This field is only valid for action
of type changed
Implementations
sourceimpl WebhookFilter
impl WebhookFilter
sourcepub fn new() -> WebhookFilter
pub fn new() -> WebhookFilter
A WebhookFilter can be passed on creation of a webhook in order to filter the types of actions that trigger delivery of an Event
Trait Implementations
sourceimpl Clone for WebhookFilter
impl Clone for WebhookFilter
sourcefn clone(&self) -> WebhookFilter
fn clone(&self) -> WebhookFilter
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more