[][src]Struct wallabag_api::types::Tag

pub struct Tag {
    pub id: ID,
    pub label: String,
    pub slug: String,
}

Represents a tag from the API.

Fields

id: ID

The unique tag ID.

label: String

The label aka name. The API accepts tags with commas in the label, but this is discouraged as some API methods require tags to be supplied as a comma separated string (eg. "tag1,tag2") and commas in the labels causes the label to be split into multiple tags.

slug: String

The url-friendly unique label for the tag to be used in web links. Usually derived from the tag label. Eg. https://framabag.org/tag/list/vim-1 for a tag labelled vim.

Trait Implementations

impl Debug for Tag[src]

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

impl From<Tag> for ID[src]

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

impl Serialize for Tag[src]

Auto Trait Implementations

impl RefUnwindSafe for Tag

impl Send for Tag

impl Sync for Tag

impl Unpin for Tag

impl UnwindSafe for Tag

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.