Struct wallabag_api::types::ID [−][src]
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
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.
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
This is implemented so that an &Annotation can be used interchangeably with an ID for some client methods. For convenience.
Performs the conversion.
This is implemented so that an &Entry can be used interchangeably with an ID for some client methods. For convenience.
This is implemented so that an Annotation can be used interchangeably with an ID for some client methods. For convenience.
Performs the conversion.
This is implemented so that an Entry can be used interchangeably with an ID for some client methods. For convenience.
Convenience method to use an ID or Tag interchangeably in client methods.
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more