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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.