[][src]Enum crossref::response::Message

pub enum Message {
    ValidationFailure(Vec<Failure>),
    RouteNotFound,
    WorkAgency(WorkAgency),
    Prefix(Prefix),
    Type(CrossrefType),
    TypeList(TypeList),
    Work(Box<Work>),
    WorkList(WorkList),
    Member(Box<Member>),
    MemberList(MemberList),
    Journal(Box<Journal>),
    JournalList(JournalList),
    Funder(Box<Funder>),
    FunderList(FunderList),
}

the different payloads of a response

Variants

ValidationFailure(Vec<Failure>)

if a request failed on the server side

RouteNotFound

a route could not be found on the server side

WorkAgency(WorkAgency)

the agency for a specific work

Prefix(Prefix)

metadata data for the DOI owner prefix

Type(CrossrefType)

a valid work type

TypeList(TypeList)

a list of valid work types

Work(Box<Work>)

a publication(journal, articles...)

WorkList(WorkList)

a list of publications

Member(Box<Member>)

a crossref member (mostly publishers)

MemberList(MemberList)

a list of crossref members

Journal(Box<Journal>)

a Journal publication

JournalList(JournalList)

list of journal publications

Funder(Box<Funder>)

a funder in the funder registry

FunderList(FunderList)

a list of funder

Trait Implementations

impl Clone for Message[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Message[src]

impl Serialize for Message[src]

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

Auto Trait Implementations

impl Send for Message

impl Sync for Message

Blanket Implementations

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.

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

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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