pub struct CitationOccurrence {
pub id: String,
pub items: Vec<CitationOccurrenceItem>,
pub mode: Option<CitationMode>,
pub note_number: Option<u32>,
pub suppress_author: Option<bool>,
pub grouped: Option<bool>,
pub prefix: Option<String>,
pub suffix: Option<String>,
pub sentence_start: Option<bool>,
}Expand description
A citation occurrence in the document.
Maps to Citation from citum-schema-data.
Fields§
§id: StringStable identifier for this citation in the document.
items: Vec<CitationOccurrenceItem>The citation items (references cited together).
mode: Option<CitationMode>The citation mode (integral vs non-integral).
note_number: Option<u32>Footnote/endnote number for note-based styles.
Whether to suppress the author across all items.
grouped: Option<bool>Whether this is a compound-numeric group.
prefix: Option<String>Optional prefix text before all formatted items.
suffix: Option<String>Optional suffix text after all formatted items.
sentence_start: Option<bool>Signal that this cluster opens a sentence; host supplies this explicitly.
Trait Implementations§
Source§impl Clone for CitationOccurrence
impl Clone for CitationOccurrence
Source§fn clone(&self) -> CitationOccurrence
fn clone(&self) -> CitationOccurrence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CitationOccurrence
impl Debug for CitationOccurrence
Source§impl<'de> Deserialize<'de> for CitationOccurrence
impl<'de> Deserialize<'de> for CitationOccurrence
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 From<CitationOccurrence> for Citation
impl From<CitationOccurrence> for Citation
Source§fn from(occ: CitationOccurrence) -> Self
fn from(occ: CitationOccurrence) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CitationOccurrence
impl PartialEq for CitationOccurrence
Source§fn eq(&self, other: &CitationOccurrence) -> bool
fn eq(&self, other: &CitationOccurrence) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CitationOccurrence
impl Serialize for CitationOccurrence
impl StructuralPartialEq for CitationOccurrence
Auto Trait Implementations§
impl Freeze for CitationOccurrence
impl RefUnwindSafe for CitationOccurrence
impl Send for CitationOccurrence
impl Sync for CitationOccurrence
impl Unpin for CitationOccurrence
impl UnsafeUnpin for CitationOccurrence
impl UnwindSafe for CitationOccurrence
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