[][src]Struct wallabag_api::types::ID

pub struct ID(pub i64);

The type used as an ID for all data structures. Declared for clarity.

Methods

impl ID[src]

pub fn as_int(self) -> i64[src]

Trait Implementations

impl Clone for ID[src]

impl Copy for ID[src]

impl Debug for ID[src]

impl Deref for ID[src]

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.

type Target = i64

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for ID[src]

impl Display for ID[src]

impl Eq for ID[src]

impl<'_> From<&'_ Annotation> for ID[src]

This is implemented so that an &Annotation can be used interchangeably with an ID for some client methods. For convenience.

impl<'_> From<&'_ Entry> for ID[src]

This is implemented so that an &Entry can be used interchangeably with an ID for some client methods. For convenience.

impl From<Annotation> for ID[src]

This is implemented so that an Annotation can be used interchangeably with an ID for some client methods. For convenience.

impl From<Entry> for ID[src]

This is implemented so that an Entry can be used interchangeably with an ID for some client methods. For convenience.

impl From<Tag> for ID[src]

Convenience method to use an ID or Tag interchangeably in client methods.

impl From<i32> for ID[src]

For convenience.

impl From<i64> for ID[src]

For convenience.

impl Hash for ID[src]

impl PartialEq<ID> for ID[src]

impl Serialize for ID[src]

impl StructuralEq for ID[src]

impl StructuralPartialEq for ID[src]

Auto Trait Implementations

impl RefUnwindSafe for ID

impl Send for ID

impl Sync for ID

impl Unpin for ID

impl UnwindSafe for ID

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.