pub struct LabelInfo {
pub name: String,
pub id: u32,
}Expand description
One entry returned by GET /schema/labels.
The wire shape is {"name": "Person", "id": 0}. Earlier versions
of the SDK exposed this as Vec<(String, u32)> and external
callers split the tuple as (name, count) because the second
member was unnamed (issue #2). The struct form keeps the meaning
explicit and lets us add fields (e.g. count) without another
breaking rename.
Fields§
§name: StringLabel name as registered in the engine catalog.
id: u32Catalog id allocated to this label.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LabelInfo
impl<'de> Deserialize<'de> for LabelInfo
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
Auto Trait Implementations§
impl Freeze for LabelInfo
impl RefUnwindSafe for LabelInfo
impl Send for LabelInfo
impl Sync for LabelInfo
impl Unpin for LabelInfo
impl UnsafeUnpin for LabelInfo
impl UnwindSafe for LabelInfo
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