pub struct TagUpdate {
pub color: Option<Option<String>>,
pub description: Option<Option<String>>,
pub name: String,
pub extra: Map<String, Value>,
}Expand description
Replacement tag properties. The tag’s domain cannot be changed.
Fields§
§color: Option<Option<String>>Semantic tag color; responses use basic when unset.
Allowed values: accent, amber, basic, blue, constructive, critical, cyan, destructive, emerald, error, fuchsia, gray, green, indigo, info, lime, magic, orange, pink, purple, red, rose, sky, success, teal, violet, warning, yellow.
None leaves the field out, Some(None) sends null.
description: Option<Option<String>>None leaves the field out, Some(None) sends null.
name: StringTag name, unique within the domain.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TagUpdate
impl<'de> Deserialize<'de> for TagUpdate
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 StructuralPartialEq for TagUpdate
Auto Trait Implementations§
impl Freeze for TagUpdate
impl RefUnwindSafe for TagUpdate
impl Send for TagUpdate
impl Sync for TagUpdate
impl Unpin for TagUpdate
impl UnsafeUnpin for TagUpdate
impl UnwindSafe for TagUpdate
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