pub struct TagCreate {
pub color: Option<Option<String>>,
pub description: Option<Option<String>>,
pub name: String,
pub extra: Map<String, Value>,
}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 TagCreate
impl<'de> Deserialize<'de> for TagCreate
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 TagCreate
Auto Trait Implementations§
impl Freeze for TagCreate
impl RefUnwindSafe for TagCreate
impl Send for TagCreate
impl Sync for TagCreate
impl Unpin for TagCreate
impl UnsafeUnpin for TagCreate
impl UnwindSafe for TagCreate
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