Struct asana::models::event_response_change::EventResponseChange
source · [−]pub struct EventResponseChange {
pub field: Option<String>,
pub action: Option<String>,
pub new_value: Option<Value>,
pub added_value: Option<Value>,
pub removed_value: Option<Value>,
}
Expand description
EventResponseChange : Information about the type of change that has occurred. This field is only present when the value of the property action
, describing the action taken on the resource, is changed
.
Fields
field: Option<String>
The name of the field that has changed in the resource.
action: Option<String>
The type of action taken on the field which has been changed. This can be one of changed
, added
, or removed
depending on the nature of the change.
new_value: Option<Value>
Conditional. This property is only present when the field’s action
is changed
and the new_value
is an Asana resource. This will be only the gid
and resource_type
of the resource when the events come from webhooks; this will be the compact representation (and can have fields expanded with opt_fields) when using the Events resource.
added_value: Option<Value>
Conditional. This property is only present when the field’s action
is added
and the added_value
is an Asana resource. This will be only the gid
and resource_type
of the resource when the events come from webhooks; this will be the compact representation (and can have fields expanded with opt_fields) when using the Events resource.
removed_value: Option<Value>
Conditional. This property is only present when the field’s action
is removed
and the removed_value
is an Asana resource. This will be only the gid
and resource_type
of the resource when the events come from webhooks; this will be the compact representation (and can have fields expanded with opt_fields) when using the Events resource.
Implementations
sourceimpl EventResponseChange
impl EventResponseChange
sourcepub fn new() -> EventResponseChange
pub fn new() -> EventResponseChange
Information about the type of change that has occurred. This field is only present when the value of the property action
, describing the action taken on the resource, is changed
.
Trait Implementations
sourceimpl Clone for EventResponseChange
impl Clone for EventResponseChange
sourcefn clone(&self) -> EventResponseChange
fn clone(&self) -> EventResponseChange
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more