pub struct TagUpdateData {
pub name: Option<String>,
pub color: Option<TagColor>,
pub notes: Option<Option<String>>,
pub followers: Option<Vec<String>>,
}Expand description
Payload for updating existing tags.
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>Tag name update.
color: Option<TagColor>Color update.
notes: Option<Option<String>>Notes update.
followers: Option<Vec<String>>Replace followers with the provided identifiers.
Implementations§
Trait Implementations§
Source§impl Clone for TagUpdateData
impl Clone for TagUpdateData
Source§fn clone(&self) -> TagUpdateData
fn clone(&self) -> TagUpdateData
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 TagUpdateData
impl Debug for TagUpdateData
Source§impl Default for TagUpdateData
impl Default for TagUpdateData
Source§fn default() -> TagUpdateData
fn default() -> TagUpdateData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TagUpdateData
impl<'de> Deserialize<'de> for TagUpdateData
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
impl Eq for TagUpdateData
Source§impl PartialEq for TagUpdateData
impl PartialEq for TagUpdateData
Source§impl Serialize for TagUpdateData
impl Serialize for TagUpdateData
impl StructuralPartialEq for TagUpdateData
Auto Trait Implementations§
impl Freeze for TagUpdateData
impl RefUnwindSafe for TagUpdateData
impl Send for TagUpdateData
impl Sync for TagUpdateData
impl Unpin for TagUpdateData
impl UnsafeUnpin for TagUpdateData
impl UnwindSafe for TagUpdateData
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