pub struct ClaimInput {
pub text: Option<String>,
pub title: Option<String>,
pub authors: Vec<String>,
pub year: Option<i16>,
pub container: Option<String>,
pub volume: Option<String>,
pub page: Option<String>,
pub _key: Option<IgnoredAny>,
pub doi: Option<String>,
pub arxiv: Option<String>,
pub id: Option<String>,
pub ids: Vec<String>,
}Expand description
A claim as an agent would write it, one JSON object per stdin line. Unknown keys are rejected so typos aren’t silently ignored.
Fields§
§text: Option<String>§title: Option<String>§year: Option<i16>§container: Option<String>§volume: Option<String>§page: Option<String>The first page, or a range.
_key: Option<IgnoredAny>The caller’s own reference for this claim, echoed back untouched;
allowed here, read from the raw line (see InputClaim::from_line).
doi: Option<String>§arxiv: Option<String>§id: Option<String>Any identifier form lookup accepts.
ids: Vec<String>Implementations§
Trait Implementations§
Source§impl Debug for ClaimInput
impl Debug for ClaimInput
Source§impl Default for ClaimInput
impl Default for ClaimInput
Source§impl<'de> Deserialize<'de> for ClaimInput
impl<'de> Deserialize<'de> for ClaimInput
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 Forget for ClaimInput
impl Freeze for ClaimInput
impl Move for ClaimInput
impl RefUnwindSafe for ClaimInput
impl Send for ClaimInput
impl Sync for ClaimInput
impl Unpin for ClaimInput
impl UnsafeUnpin for ClaimInput
impl UnwindSafe for ClaimInput
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