pub struct TagWithCount {
pub color: String,
pub description: Option<String>,
pub id: i64,
pub name: String,
pub count: i64,
pub extra: Map<String, Value>,
}Expand description
Tag with contextual count. The domain-wide list computes its total links; creation returns 0. Other operations normally return the serializer’s fallback 1, not a freshly calculated total.
Fields§
§color: StringStored semantic color, or basic when no color is stored.
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.
description: Option<String>§id: i64§name: String§count: i64Link count only for the domain-wide catalog; other endpoint contexts use 0 on creation or normally 1.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.
Trait Implementations§
Source§impl Clone for TagWithCount
impl Clone for TagWithCount
Source§impl Debug for TagWithCount
impl Debug for TagWithCount
Source§impl Default for TagWithCount
impl Default for TagWithCount
Source§impl<'de> Deserialize<'de> for TagWithCount
impl<'de> Deserialize<'de> for TagWithCount
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
Source§impl PartialEq for TagWithCount
impl PartialEq for TagWithCount
Source§impl Serialize for TagWithCount
impl Serialize for TagWithCount
impl StructuralPartialEq for TagWithCount
Auto Trait Implementations§
impl Freeze for TagWithCount
impl RefUnwindSafe for TagWithCount
impl Send for TagWithCount
impl Sync for TagWithCount
impl Unpin for TagWithCount
impl UnsafeUnpin for TagWithCount
impl UnwindSafe for TagWithCount
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