[][src]Struct serde_mangadex::manga_norm::Group

pub struct Group<'a> {
    pub id: u32,
    pub name: Cow<'a, str>,
    pub website: Option<Cow<'a, str>>,
}

A (de)serializable group information site.

Fields

id: u32name: Cow<'a, str>website: Option<Cow<'a, str>>

Methods

impl<'a> Group<'a>[src]

pub fn group_website(self, website: String) -> Self[src]

Sets a groups website

pub fn add_to_groups(self, groups: &mut Groups)[src]

Adds a group to a given list of groups

Trait Implementations

impl<'a> Clone for Group<'a>[src]

impl<'a> Debug for Group<'a>[src]

impl<'de, 'a> Deserialize<'de> for Group<'a>[src]

impl<'a> Eq for Group<'a>[src]

impl<'a> Extend<Group<'a>> for Groups[src]

impl<'a> From<(String, (&'a str, Option<&'a str>))> for Group<'a>[src]

impl<'a> Ord for Group<'a>[src]

impl<'a> PartialEq<Group<'a>> for Group<'a>[src]

impl<'a> PartialOrd<Group<'a>> for Group<'a>[src]

impl<'a> Serialize for Group<'a>[src]

impl<'a> StructuralEq for Group<'a>[src]

impl<'a> StructuralPartialEq for Group<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Group<'a>

impl<'a> Send for Group<'a>

impl<'a> Sync for Group<'a>

impl<'a> Unpin for Group<'a>

impl<'a> UnwindSafe for Group<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.