pub struct BibliographyEntry {Show 22 fields
pub id: String,
pub entry_type: EntryType,
pub title: String,
pub authors: Vec<Author>,
pub issued: Option<PartialDate>,
pub container_title: Option<String>,
pub volume: Option<String>,
pub issue: Option<String>,
pub page: Option<String>,
pub doi: Option<String>,
pub url: Option<String>,
pub isbn: Option<String>,
pub issn: Option<String>,
pub publisher: Option<String>,
pub publisher_place: Option<String>,
pub edition: Option<String>,
pub editors: Vec<Author>,
pub abstract_text: Option<String>,
pub keywords: Vec<String>,
pub language: Option<String>,
pub accessed: Option<PartialDate>,
pub note: Option<String>,
}Expand description
A bibliography entry representing a single reference.
Fields§
§id: StringUnique identifier for the entry (used in citations).
entry_type: EntryTypeType of the entry.
title: StringTitle of the work.
Authors of the work.
issued: Option<PartialDate>Publication date.
container_title: Option<String>Container title (e.g., journal name, book title for chapters).
volume: Option<String>Volume number.
issue: Option<String>Issue number.
page: Option<String>Page range.
doi: Option<String>Digital Object Identifier.
url: Option<String>URL to the work.
isbn: Option<String>ISBN for books.
issn: Option<String>ISSN for journals.
publisher: Option<String>Publisher name.
publisher_place: Option<String>Publication location.
edition: Option<String>Edition number or description.
editors: Vec<Author>Editors (for edited volumes).
abstract_text: Option<String>Abstract text.
keywords: Vec<String>Keywords or tags.
language: Option<String>Language of the work.
accessed: Option<PartialDate>Access date for online resources.
note: Option<String>Additional notes.
Implementations§
Source§impl BibliographyEntry
impl BibliographyEntry
Sourcepub fn new(
id: impl Into<String>,
entry_type: EntryType,
title: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, entry_type: EntryType, title: impl Into<String>, ) -> Self
Create a new bibliography entry.
Add an author.
Add multiple authors.
Sourcepub fn with_issued(self, date: PartialDate) -> Self
pub fn with_issued(self, date: PartialDate) -> Self
Set the publication date.
Sourcepub fn with_container(self, container: impl Into<String>) -> Self
pub fn with_container(self, container: impl Into<String>) -> Self
Set the container title.
Sourcepub fn with_volume_issue(
self,
volume: impl Into<String>,
issue: Option<String>,
) -> Self
pub fn with_volume_issue( self, volume: impl Into<String>, issue: Option<String>, ) -> Self
Set volume and issue.
Sourcepub fn with_pages(self, pages: impl Into<String>) -> Self
pub fn with_pages(self, pages: impl Into<String>) -> Self
Set page range.
Trait Implementations§
Source§impl Clone for BibliographyEntry
impl Clone for BibliographyEntry
Source§fn clone(&self) -> BibliographyEntry
fn clone(&self) -> BibliographyEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BibliographyEntry
impl Debug for BibliographyEntry
Source§impl<'de> Deserialize<'de> for BibliographyEntry
impl<'de> Deserialize<'de> for BibliographyEntry
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
Source§impl PartialEq for BibliographyEntry
impl PartialEq for BibliographyEntry
Source§impl Serialize for BibliographyEntry
impl Serialize for BibliographyEntry
impl Eq for BibliographyEntry
impl StructuralPartialEq for BibliographyEntry
Auto Trait Implementations§
impl Freeze for BibliographyEntry
impl RefUnwindSafe for BibliographyEntry
impl Send for BibliographyEntry
impl Sync for BibliographyEntry
impl Unpin for BibliographyEntry
impl UnsafeUnpin for BibliographyEntry
impl UnwindSafe for BibliographyEntry
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,
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.