asana/model/rule_trigger_request.rs
1use serde::{Serialize, Deserialize};
2#[derive(Debug, Clone, Serialize, Deserialize, Default)]
3pub struct RuleTriggerRequest {
4 ///The dynamic keys and values of the request. These fields are intended to be used in the action for the rule associated with this trigger.
5 pub action_data: serde_json::Value,
6 ///The ID of the resource. For the duration of the beta, this resource is always a task, and this task must exist in the project in which the rule is created.
7 pub resource: String,
8}
9impl std::fmt::Display for RuleTriggerRequest {
10 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
11 write!(f, "{}", serde_json::to_string(self).unwrap())
12 }
13}