pub struct Response {
pub status: String,
pub message_type: MessageType,
pub message_version: String,
pub message: Option<Message>,
}
Expand description
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
Implementations§
Source§impl Response
impl Response
Sourcepub fn is_work_ageny(&self) -> bool
pub fn is_work_ageny(&self) -> bool
checks if the message holds the variant
Sourcepub fn is_journal(&self) -> bool
pub fn is_journal(&self) -> bool
checks if the message holds the variant
Sourcepub fn is_validation_failure(&self) -> bool
pub fn is_validation_failure(&self) -> bool
checks if the message holds the variant
Sourcepub fn is_type_list(&self) -> bool
pub fn is_type_list(&self) -> bool
checks if the message holds the variant
Sourcepub fn is_work_list(&self) -> bool
pub fn is_work_list(&self) -> bool
checks if the message holds the variant
Sourcepub fn is_member_list(&self) -> bool
pub fn is_member_list(&self) -> bool
checks if the message holds the variant
Sourcepub fn is_journal_list(&self) -> bool
pub fn is_journal_list(&self) -> bool
checks if the message holds the variant
Sourcepub fn is_funder_list(&self) -> bool
pub fn is_funder_list(&self) -> bool
checks if the message holds the variant
Sourcepub fn is_route_not_found(&self) -> bool
pub fn is_route_not_found(&self) -> bool
checks whether the message
holds a variant of RouteNotFound
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more