pub struct TemplateRenderParams<'a> {
pub template: &'a [TemplateComponent],
pub context: RenderContext,
pub mode: CitationMode,
pub suppress_author: bool,
pub citation_number: usize,
pub locator_raw: Option<&'a CitationLocator>,
pub position: Option<&'a Position>,
pub note_start_text_case: Option<NoteStartTextCase>,
pub integral_name_state: Option<IntegralNameState>,
}Expand description
Parameters for rendering a template with a citation number.
Bundles all rendering configuration into a single struct so that
process_template_with_number and its format-generic variant can
accept a single argument instead of ten, eliminating the need for
#[allow(clippy::too_many_arguments)] suppressions.
Fields§
§template: &'a [TemplateComponent]The template components to render.
context: RenderContextThe rendering context (citation or bibliography).
mode: CitationModeThe citation mode (integral or non-integral).
Whether to suppress the author component.
citation_number: usizeThe citation number for numeric styles.
locator_raw: Option<&'a CitationLocator>The raw citation locator if present.
position: Option<&'a Position>The citation position (e.g., ibid, subsequent).
note_start_text_case: Option<NoteStartTextCase>Optional note-start text-case policy for citation templates.
integral_name_state: Option<IntegralNameState>Whether the author was rendered in integral form in the prose anchor.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TemplateRenderParams<'a>
impl<'a> RefUnwindSafe for TemplateRenderParams<'a>
impl<'a> Send for TemplateRenderParams<'a>
impl<'a> Sync for TemplateRenderParams<'a>
impl<'a> Unpin for TemplateRenderParams<'a>
impl<'a> UnsafeUnpin for TemplateRenderParams<'a>
impl<'a> UnwindSafe for TemplateRenderParams<'a>
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