[][src]Struct crossref::response::Response

pub struct Response {
    pub status: String,
    pub message_type: MessageType,
    pub message_version: String,
    pub message: Option<Message>,
}

Represents the whole crossref response for a any request.

Fields

status: String

the status of the request

message_type: MessageType

the type of the response message holds

message_version: String

the version of the service created this message

message: Option<Message>

the actual message of the response

Methods

impl Response[src]

pub fn is_work_ageny(&self) -> bool[src]

checks if the message holds the variant

pub fn is_funder(&self) -> bool[src]

checks if the message holds the variant

pub fn is_prefix(&self) -> bool[src]

checks if the message holds the variant

pub fn is_work(&self) -> bool[src]

checks if the message holds the variant

pub fn is_type(&self) -> bool[src]

checks if the message holds the variant

pub fn is_journal(&self) -> bool[src]

checks if the message holds the variant

pub fn is_member(&self) -> bool[src]

checks if the message holds the variant

pub fn is_validation_failure(&self) -> bool[src]

checks if the message holds the variant

pub fn is_type_list(&self) -> bool[src]

checks if the message holds the variant

pub fn is_work_list(&self) -> bool[src]

checks if the message holds the variant

pub fn is_member_list(&self) -> bool[src]

checks if the message holds the variant

pub fn is_journal_list(&self) -> bool[src]

checks if the message holds the variant

pub fn is_funder_list(&self) -> bool[src]

checks if the message holds the variant

pub fn is_route_not_found(&self) -> bool[src]

checks whether the message holds a variant of RouteNotFound

Trait Implementations

impl Clone for Response[src]

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

Performs copy-assignment from source. Read more

impl Debug for Response[src]

impl Serialize for Response[src]

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

Auto Trait Implementations

impl Send for Response

impl Sync for Response

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