pub struct Entry { /* private fields */ }
Expand description
A citable item in a bibliography.
Implementations§
source§impl Entry
impl Entry
Getters.
sourcepub fn entry_type(&self) -> &EntryType
pub fn entry_type(&self) -> &EntryType
Get the type of the entry.
sourcepub fn title(&self) -> Option<&FormatString>
pub fn title(&self) -> Option<&FormatString>
Title of the item.
Persons primarily responsible for creating the item.
sourcepub fn editors(&self) -> Option<&[Person]>
pub fn editors(&self) -> Option<&[Person]>
Persons responsible for selecting and revising the content of the item.
sourcepub fn affiliated(&self) -> Option<&[PersonsWithRoles]>
pub fn affiliated(&self) -> Option<&[PersonsWithRoles]>
Persons involved in the production of the item that are not authors or editors.
sourcepub fn publisher(&self) -> Option<&FormatString>
pub fn publisher(&self) -> Option<&FormatString>
Publisher of the item.
sourcepub fn location(&self) -> Option<&FormatString>
pub fn location(&self) -> Option<&FormatString>
Physical location at which the item was published or created.
sourcepub fn organization(&self) -> Option<&FormatString>
pub fn organization(&self) -> Option<&FormatString>
Organization at/for which the item was created.
sourcepub fn issue(&self) -> Option<&MaybeTyped<Numeric>>
pub fn issue(&self) -> Option<&MaybeTyped<Numeric>>
For an item whose parent has multiple issues, indicates the position in the issue sequence. Also used to indicate the episode number for TV.
sourcepub fn volume(&self) -> Option<&MaybeTyped<Numeric>>
pub fn volume(&self) -> Option<&MaybeTyped<Numeric>>
For an item whose parent has multiple volumes/parts/seasons … of which this item is one.
sourcepub fn volume_total(&self) -> Option<&Numeric>
pub fn volume_total(&self) -> Option<&Numeric>
Total number of volumes/parts/seasons … this item consists of.
sourcepub fn edition(&self) -> Option<&MaybeTyped<Numeric>>
pub fn edition(&self) -> Option<&MaybeTyped<Numeric>>
Published version of an item.
sourcepub fn page_range(&self) -> Option<&MaybeTyped<Numeric>>
pub fn page_range(&self) -> Option<&MaybeTyped<Numeric>>
The range of pages within the parent this item occupies
sourcepub fn page_total(&self) -> Option<&Numeric>
pub fn page_total(&self) -> Option<&Numeric>
The total number of pages the item has.
sourcepub fn time_range(&self) -> Option<&MaybeTyped<DurationRange>>
pub fn time_range(&self) -> Option<&MaybeTyped<DurationRange>>
The time range within the parent this item starts and ends at.
sourcepub fn runtime(&self) -> Option<&MaybeTyped<Duration>>
pub fn runtime(&self) -> Option<&MaybeTyped<Duration>>
The total runtime of the item.
sourcepub fn url(&self) -> Option<&QualifiedUrl>
pub fn url(&self) -> Option<&QualifiedUrl>
Canonical public URL of the item, can have access date.
sourcepub fn serial_number(&self) -> Option<&SerialNumber>
pub fn serial_number(&self) -> Option<&SerialNumber>
Any serial number or version describing the item that is not appropriate for the fields doi, edition, isbn or issn (may be assigned by the author of the item; especially useful for preprint archives).
sourcepub fn language(&self) -> Option<&LanguageIdentifier>
pub fn language(&self) -> Option<&LanguageIdentifier>
The language of the item.
sourcepub fn archive(&self) -> Option<&FormatString>
pub fn archive(&self) -> Option<&FormatString>
Name of the institution/collection where the item is kept.
sourcepub fn archive_location(&self) -> Option<&FormatString>
pub fn archive_location(&self) -> Option<&FormatString>
Physical location of the institution/collection where the item is kept.
sourcepub fn call_number(&self) -> Option<&FormatString>
pub fn call_number(&self) -> Option<&FormatString>
The call number of the item in the institution/collection.
sourcepub fn note(&self) -> Option<&FormatString>
pub fn note(&self) -> Option<&FormatString>
Additional description to be appended in the bibliographic entry.
sourcepub fn abstract_(&self) -> Option<&FormatString>
pub fn abstract_(&self) -> Option<&FormatString>
Abstract of the item (e.g. the abstract of a journal article).
sourcepub fn annote(&self) -> Option<&FormatString>
pub fn annote(&self) -> Option<&FormatString>
Short markup, decoration, or annotation to the item (e.g., to indicate items included in a review);
For descriptive text (e.g., in an annotated bibliography), use note
instead.
sourcepub fn genre(&self) -> Option<&FormatString>
pub fn genre(&self) -> Option<&FormatString>
Type, class, or subtype of the item (e.g. “Doctoral dissertation” for a PhD thesis; “NIH Publication” for an NIH technical report); Do not use for topical descriptions or categories (e.g. “adventure” for an adventure movie).
source§impl Entry
impl Entry
Setters.
sourcepub fn set_parents(&mut self, parents: Vec<Entry>)
pub fn set_parents(&mut self, parents: Vec<Entry>)
Set the parents of the entry.
sourcepub fn set_title(&mut self, title: FormatString)
pub fn set_title(&mut self, title: FormatString)
Set the title
field.
Set the author
field.
sourcepub fn set_editors(&mut self, editors: Vec<Person>)
pub fn set_editors(&mut self, editors: Vec<Person>)
Set the editor
field.
sourcepub fn set_affiliated(&mut self, affiliated: Vec<PersonsWithRoles>)
pub fn set_affiliated(&mut self, affiliated: Vec<PersonsWithRoles>)
Set the affiliated
field.
sourcepub fn set_publisher(&mut self, publisher: FormatString)
pub fn set_publisher(&mut self, publisher: FormatString)
Set the publisher
field.
sourcepub fn set_location(&mut self, location: FormatString)
pub fn set_location(&mut self, location: FormatString)
Set the location
field.
sourcepub fn set_organization(&mut self, organization: FormatString)
pub fn set_organization(&mut self, organization: FormatString)
Set the organization
field.
sourcepub fn set_issue(&mut self, issue: MaybeTyped<Numeric>)
pub fn set_issue(&mut self, issue: MaybeTyped<Numeric>)
Set the issue
field.
sourcepub fn set_volume(&mut self, volume: MaybeTyped<Numeric>)
pub fn set_volume(&mut self, volume: MaybeTyped<Numeric>)
Set the volume
field.
sourcepub fn set_volume_total(&mut self, volume_total: Numeric)
pub fn set_volume_total(&mut self, volume_total: Numeric)
Set the volume-total
field.
sourcepub fn set_edition(&mut self, edition: MaybeTyped<Numeric>)
pub fn set_edition(&mut self, edition: MaybeTyped<Numeric>)
Set the edition
field.
sourcepub fn set_page_range(&mut self, page_range: MaybeTyped<Numeric>)
pub fn set_page_range(&mut self, page_range: MaybeTyped<Numeric>)
Set the page-range
field.
sourcepub fn set_page_total(&mut self, page_total: Numeric)
pub fn set_page_total(&mut self, page_total: Numeric)
Set the page-total
field.
sourcepub fn set_time_range(&mut self, time_range: MaybeTyped<DurationRange>)
pub fn set_time_range(&mut self, time_range: MaybeTyped<DurationRange>)
Set the time-range
field.
sourcepub fn set_runtime(&mut self, runtime: MaybeTyped<Duration>)
pub fn set_runtime(&mut self, runtime: MaybeTyped<Duration>)
Set the runtime
field.
sourcepub fn set_url(&mut self, url: QualifiedUrl)
pub fn set_url(&mut self, url: QualifiedUrl)
Set the url
field.
sourcepub fn set_serial_number(&mut self, serial_number: SerialNumber)
pub fn set_serial_number(&mut self, serial_number: SerialNumber)
Set the serial-number
field.
sourcepub fn set_language(&mut self, language: LanguageIdentifier)
pub fn set_language(&mut self, language: LanguageIdentifier)
Set the language
field.
sourcepub fn set_archive(&mut self, archive: FormatString)
pub fn set_archive(&mut self, archive: FormatString)
Set the archive
field.
sourcepub fn set_archive_location(&mut self, archive_location: FormatString)
pub fn set_archive_location(&mut self, archive_location: FormatString)
Set the archive-location
field.
sourcepub fn set_call_number(&mut self, call_number: FormatString)
pub fn set_call_number(&mut self, call_number: FormatString)
Set the call-number
field.
sourcepub fn set_note(&mut self, note: FormatString)
pub fn set_note(&mut self, note: FormatString)
Set the note
field.
sourcepub fn set_abstract_(&mut self, abstract_: FormatString)
pub fn set_abstract_(&mut self, abstract_: FormatString)
Set the abstract
field.
sourcepub fn set_annote(&mut self, annote: FormatString)
pub fn set_annote(&mut self, annote: FormatString)
Set the annote
field.
sourcepub fn set_genre(&mut self, genre: FormatString)
pub fn set_genre(&mut self, genre: FormatString)
Set the genre
field.
source§impl Entry
impl Entry
sourcepub fn map<'a, F, T>(&'a self, f: F) -> Option<T>
pub fn map<'a, F, T>(&'a self, f: F) -> Option<T>
Get the unconverted value of a certain field from this entry or any of its parents.
sourcepub fn map_parents<'a, F, T>(&'a self, f: F) -> Option<T>
pub fn map_parents<'a, F, T>(&'a self, f: F) -> Option<T>
Get the unconverted value of a certain field from the parents only by BFS.
sourcepub fn bound_select(&self, selector: &Selector, binding: &str) -> Option<&Entry>
pub fn bound_select(&self, selector: &Selector, binding: &str) -> Option<&Entry>
Apply a selector and return a bound parent entry or self.
sourcepub fn date_any(&self) -> Option<&Date>
pub fn date_any(&self) -> Option<&Date>
Will recursively get a date off either the entry or any of its ancestors.
sourcepub fn url_any(&self) -> Option<&QualifiedUrl>
pub fn url_any(&self) -> Option<&QualifiedUrl>
Will recursively get an URL off either the entry or any of its ancestors.
sourcepub fn keyed_serial_number(&self, key: &str) -> Option<&str>
pub fn keyed_serial_number(&self, key: &str) -> Option<&str>
Retrieve a keyed serial number.
sourcepub fn set_keyed_serial_number(&mut self, key: &str, value: String)
pub fn set_keyed_serial_number(&mut self, key: &str, value: String)
Set a keyed serial number.
Trait Implementations§
source§impl FromIterator<Entry> for Library
impl FromIterator<Entry> for Library
source§impl PartialEq for Entry
impl PartialEq for Entry
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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
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
key
and return true
if they are equal.