pub struct Reference {Show 15 fields
pub key: String,
pub ref_type: RefType,
pub authors: Vec<Author>,
pub editors: Vec<Author>,
pub title: Option<String>,
pub container: Option<String>,
pub publisher: Option<String>,
pub year: Option<String>,
pub volume: Option<String>,
pub issue: Option<String>,
pub pages: Option<String>,
pub url: Option<String>,
pub doi: Option<String>,
pub accessed: Option<String>,
pub edition: Option<String>,
}Expand description
A bibliographic reference. Optional fields use Option; the key is the
stable id used by inline [@key] citations and bibliography anchors.
Fields§
§key: StringCitation key / id (e.g. smith2020).
ref_type: RefTypeSource category (article/book/web/…).
Authors in listed order.
editors: Vec<Author>Editors (for edited books / chapters).
title: Option<String>Title of the work.
container: Option<String>Container: journal / book / website / proceedings name.
publisher: Option<String>Publisher (books / reports).
year: Option<String>Year of publication (kept as a string to preserve n.d./2020a).
volume: Option<String>Volume number.
issue: Option<String>Issue number.
pages: Option<String>Page range (e.g. 45-67).
url: Option<String>URL.
doi: Option<String>DOI (without the https://doi.org/ prefix).
accessed: Option<String>Access date (ISO YYYY-MM-DD) for web sources.
edition: Option<String>Edition (e.g. 2nd).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reference
impl<'de> Deserialize<'de> for Reference
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 Reference
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.