pub struct Assertion {
pub name: String,
pub value: Option<String>,
pub url: Option<String>,
pub explanation: Option<Explanation>,
pub label: Option<String>,
pub order: Option<i32>,
pub group: Option<AssertionGroup>,
}Expand description
The types that appear in the public fields of a Work, re-exported so a
caller of Crossref::works can name them without reaching into
response::work.
a Crossmark claim the
publisher made about the work, e.g. its peer review status or funding
Fields§
§name: Stringwhat is being asserted, as a machine-readable name
value: Option<String>the asserted value
url: Option<String>a link backing the assertion up
explanation: Option<Explanation>where the assertion is explained
label: Option<String>a display-friendly form of name
order: Option<i32>where to place this assertion when displaying the group
group: Option<AssertionGroup>the group of assertions this one is displayed under
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Assertion
impl<'de> Deserialize<'de> for Assertion
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
impl Eq for Assertion
impl StructuralPartialEq for Assertion
Auto Trait Implementations§
impl Freeze for Assertion
impl RefUnwindSafe for Assertion
impl Send for Assertion
impl Sync for Assertion
impl Unpin for Assertion
impl UnsafeUnpin for Assertion
impl UnwindSafe for Assertion
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.