pub enum Message {
Show 16 variants
ValidationFailure(Failures),
RouteNotFound(String),
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),
LicenseList(LicenseList),
StyleList(StyleList),
}Expand description
the different payloads of a response, and the message-type that names them
Variants§
ValidationFailure(Failures)
if a request failed on the server side
RouteNotFound(String)
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
LicenseList(LicenseList)
a list of licenses works in the crossref metadata are published under
StyleList(StyleList)
a list of the citation styles crossref can render a work in
Implementations§
Source§impl Message
impl Message
Sourcepub fn message_type(&self) -> MessageType
pub fn message_type(&self) -> MessageType
the message-type crossref labelled this payload with
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§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
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more