#[non_exhaustive]pub enum Processing {
AuthorDate,
Numeric,
Note,
Label(LabelConfig),
Custom(ProcessingCustom),
}Expand description
Processing mode for citation/bibliography generation.
Determines how citations and bibliographies are sorted, grouped, and disambiguated. Can be specified as a simple string or with complex configuration maps:
- A string:
"author-date","numeric","note", or"label" - A label config map:
{ label: { preset: din } } - A custom config map:
{ sort: ..., group: ..., disambiguate: ... }
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AuthorDate
Author-date styles (e.g., APA, Chicago). Default bibliography ordering: author, year, title.
Numeric
Numeric styles (e.g., IEEE, Nature). Do not imply a bibliography sort; citations are numbered in order of appearance.
Note
Note styles (e.g., Chicago Notes-Bibliography). With a bibliography default to author, title, year ordering.
Label(LabelConfig)
Label styles (e.g., Alpha, DIN 1505-2). Default bibliography ordering: author, year, title.
Custom(ProcessingCustom)
Fully custom processing behavior.
Explicit sort configuration remains authoritative.
Implementations§
Source§impl Processing
impl Processing
Sourcepub fn default_bibliography_sort(&self) -> Option<SortPreset>
pub fn default_bibliography_sort(&self) -> Option<SortPreset>
Default bibliography sort for the processing family, if any.
Returns the standard bibliography sort order for the processing mode:
AuthorDate/Label: author, year, titleNote: author, title, yearNumeric/Custom: None (no automatic sort)
Sourcepub fn default_citation_sort_policy(&self) -> CitationSortPolicy
pub fn default_citation_sort_policy(&self) -> CitationSortPolicy
Citation sorting remains explicit-only for all processing families.
All processing modes use ExplicitOnly, meaning citation clusters are only
reordered when explicitly configured via citation.sort.
Sourcepub fn config(&self) -> ProcessingCustom
pub fn config(&self) -> ProcessingCustom
Get the effective bibliography/disambiguation configuration for this processing mode.
Returns a ProcessingCustom struct with the resolved configuration combining
preset defaults and user overrides. For Custom mode, returns the user-provided config as-is.
Trait Implementations§
Source§impl Clone for Processing
impl Clone for Processing
Source§fn clone(&self) -> Processing
fn clone(&self) -> Processing
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Processing
impl Debug for Processing
Source§impl Default for Processing
impl Default for Processing
Source§fn default() -> Processing
fn default() -> Processing
Source§impl<'de> Deserialize<'de> for Processing
impl<'de> Deserialize<'de> for Processing
Source§fn deserialize<D>(
deserializer: D,
) -> Result<Processing, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Processing, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl PartialEq for Processing
impl PartialEq for Processing
Source§fn eq(&self, other: &Processing) -> bool
fn eq(&self, other: &Processing) -> bool
self and other values to be equal, and is used by ==.