pub enum ItemValue {
Ordinary(OrdinaryValue),
Date(Date),
Names(Vec<Name>),
}Expand description
Any of the possible value types of an item’s fields.
Variants§
Ordinary(OrdinaryValue)
Ordinary fields containing string or numeric values.
In ordinary fields, the processor recognizes a limited set of HTML-like tags for visual formatting.
One common ordinary field is title, which identifies the title of the
citation item.
Date(Date)
Date fields containing dates or ranges of dates.
A date field is a complex field that expresses a date or a range of
dates, for example issued, which identifies the date an item was
issued or published.
Names(Vec<Name>)
Names fields containing lists of names.
A names field is a complex field that lists persons as authors, contributors, or creators, etc. Each field is an array of objects, with each object containing information about one person.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ItemValue
impl<'de> Deserialize<'de> for ItemValue
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 ItemValue
impl StructuralPartialEq for ItemValue
Auto Trait Implementations§
impl Freeze for ItemValue
impl RefUnwindSafe for ItemValue
impl Send for ItemValue
impl Sync for ItemValue
impl Unpin for ItemValue
impl UnwindSafe for ItemValue
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