pub struct Record {Show 20 fields
pub author: Vec<Author>,
pub book: Option<String>,
pub place: Option<String>,
pub date: Option<String>,
pub editor: Vec<String>,
pub government: Option<String>,
pub issuer: Option<String>,
pub journal: Option<String>,
pub keywords: Option<Vec<String>>,
pub label: Option<String>,
pub issue_number: Option<String>,
pub page_number: Option<String>,
pub other: Option<String>,
pub author_np: Option<String>,
pub report: Option<String>,
pub series: Option<String>,
pub title: Option<String>,
pub volume: Option<String>,
pub annotation: Option<String>,
pub rec_type: RecordType,
}
Expand description
A refer record.
The record is exhaustive to the refer specification.
Fields§
The author list
book: Option<String>
The name of the book
place: Option<String>
The place
date: Option<String>
Date of publication
editor: Vec<String>
The editor
government: Option<String>
US Government ordering number.
issuer: Option<String>
The publisher (issuer)
journal: Option<String>
For an article in a journal, the name of the journal.
keywords: Option<Vec<String>>
Keywords to be used for searching.
label: Option<String>
Label.
issue_number: Option<String>
§page_number: Option<String>
Page number. A range of pages can be specified as m-n.
other: Option<String>
Other information. This is usually printed at the end of the reference.
The name of the author, if the author is not a person. This will only be used if there are no %A fields. There can only be one %Q field.
report: Option<String>
Technical report number.
series: Option<String>
Series name.
title: Option<String>
Title. For an article in a book or journal, this should be the title of the article.
volume: Option<String>
Volume number of the journal or book.
annotation: Option<String>
Annotation.
rec_type: RecordType
The type of the record, the default is [RecordType::None
].
Implementations§
Source§impl Record
impl Record
Sourcepub fn record_type(&self) -> Result<RecordType, Error>
pub fn record_type(&self) -> Result<RecordType, Error>
Return the record type of the record. At the moment, only books and journal types are supported.
Note that the %B field must be non empty (even a space will do) for a record to be treated as a book. This is also the case for %J, but usually in journal articles the journal is always present, whereas a book may not always contain citable articles within.