pub struct Response {
pub status: String,
pub message_version: String,
pub message: Message,
}Expand description
Represents the whole crossref response for a any request.
Which payload the message carries is decided by the message-type beside
it, which is exactly serde’s adjacently tagged enum – so Message does
the dispatch and this type is a plain derive.
Fields§
§status: Stringthe status of the request
message_version: Stringthe version of the service created this message
message: Messagethe actual message of the response, and the type naming it
Implementations§
Source§impl Response
impl Response
Sourcepub fn is_work_agency(&self) -> bool
pub fn is_work_agency(&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_license_list(&self) -> bool
pub fn is_license_list(&self) -> bool
checks if the message holds the variant
Sourcepub fn is_style_list(&self) -> bool
pub fn is_style_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