pub struct ID(pub i64);Expand description
The type used as an ID for all data structures. Declared for clarity.
Tuple Fields§
§0: i64Implementations§
Trait Implementations§
Source§impl Deref for ID
For convenience. Automatic type coercion means that an &ID can be passed
as an argument to a function that takes a u32. Hopefully will make it easier
to work with ID values in the structs.
impl Deref for ID
For convenience. Automatic type coercion means that an &ID can be passed
as an argument to a function that takes a u32. Hopefully will make it easier
to work with ID values in the structs.
Source§impl<'de> Deserialize<'de> for ID
impl<'de> Deserialize<'de> for ID
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>,
Source§impl From<&Annotation> for ID
This is implemented so that an &Annotation can be used interchangeably with an ID
for some client methods. For convenience.
impl From<&Annotation> for ID
This is implemented so that an &Annotation can be used interchangeably with an ID for some client methods. For convenience.
Source§fn from(ann: &Annotation) -> Self
fn from(ann: &Annotation) -> Self
Source§impl From<&Entry> for ID
This is implemented so that an &Entry can be used interchangeably with an ID
for some client methods. For convenience.
impl From<&Entry> for ID
This is implemented so that an &Entry can be used interchangeably with an ID for some client methods. For convenience.
Source§impl From<Annotation> for ID
This is implemented so that an Annotation can be used interchangeably with an ID for some
client methods. For convenience.
impl From<Annotation> for ID
This is implemented so that an Annotation can be used interchangeably with an ID for some client methods. For convenience.
Source§fn from(ann: Annotation) -> Self
fn from(ann: Annotation) -> Self
Source§impl From<Entry> for ID
This is implemented so that an Entry can be used interchangeably with an ID
for some client methods. For convenience.
impl From<Entry> for ID
This is implemented so that an Entry can be used interchangeably with an ID for some client methods. For convenience.
Source§impl From<Tag> for ID
Convenience method to use an ID or Tag interchangeably in client methods.
impl From<Tag> for ID
Convenience method to use an ID or Tag interchangeably in client methods.