pub struct TaskUpdateData {Show 14 fields
pub name: Option<String>,
pub notes: Option<Option<String>>,
pub html_notes: Option<Option<String>>,
pub completed: Option<bool>,
pub assignee: Option<Option<String>>,
pub due_on: Option<Option<String>>,
pub due_at: Option<Option<String>>,
pub start_on: Option<Option<String>>,
pub start_at: Option<Option<String>>,
pub parent: Option<Option<String>>,
pub tags: Option<Vec<String>>,
pub followers: Option<Vec<String>>,
pub projects: Option<Vec<String>>,
pub custom_fields: Option<BTreeMap<String, Value>>,
}Expand description
Payload for updating existing tasks.
Uses Option<Option<T>> for certain fields to distinguish three API states:
None: Don’t update field (omit from JSON payload)Some(None): Clear field (sendnullin JSON to remove value)Some(Some(value)): Set field to new value
This is required by the Asana API which treats missing fields differently from
explicit null values. Omitting a field preserves its current value, while
sending null clears it.
Fields§
§name: Option<String>Task name update.
notes: Option<Option<String>>Plain text notes update.
html_notes: Option<Option<String>>HTML notes update.
completed: Option<bool>Completion flag change.
assignee: Option<Option<String>>Assignee change (gid/email) or explicit null.
due_on: Option<Option<String>>Due date change (all day) or explicit null.
due_at: Option<Option<String>>Due timestamp change or explicit null.
start_on: Option<Option<String>>Start date change or explicit null.
start_at: Option<Option<String>>Start timestamp change or explicit null.
parent: Option<Option<String>>Parent assignment or removal.
Replace tags with the provided identifiers.
followers: Option<Vec<String>>Replace followers with the provided identifiers.
projects: Option<Vec<String>>Replace project associations with the provided identifiers.
custom_fields: Option<BTreeMap<String, Value>>Custom field updates.
Implementations§
Trait Implementations§
Source§impl Clone for TaskUpdateData
impl Clone for TaskUpdateData
Source§fn clone(&self) -> TaskUpdateData
fn clone(&self) -> TaskUpdateData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more