pub struct FormatDocumentRequest {
pub style: StyleInput,
pub locale: Option<String>,
pub output_format: OutputFormatKind,
pub refs: RefsInput,
pub citations: Vec<CitationOccurrence>,
pub document_options: Option<DocumentOptions>,
}Expand description
A request to format a complete document’s citations and bibliography.
Fields§
§style: StyleInputThe style to use (may be resolved locally or by an adapter).
locale: Option<String>Optional locale override as a BCP 47 language tag (e.g. en-US).
When omitted or set to en-US the engine uses its built-in en-US locale;
other locales emit a warning and fall back to en-US until adapter-side
locale resolution is wired through.
output_format: OutputFormatKindOutput format (plain, html, djot, latex, typst). Defaults to plain when omitted from the request.
refs: RefsInputReference input as a local path, inline YAML, inline JSON, or legacy bare map.
citations: Vec<CitationOccurrence>Ordered citations as they appear in the document.
document_options: Option<DocumentOptions>Optional document-level configuration.
Trait Implementations§
Source§impl Clone for FormatDocumentRequest
impl Clone for FormatDocumentRequest
Source§fn clone(&self) -> FormatDocumentRequest
fn clone(&self) -> FormatDocumentRequest
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 FormatDocumentRequest
impl Debug for FormatDocumentRequest
Source§impl<'de> Deserialize<'de> for FormatDocumentRequest
impl<'de> Deserialize<'de> for FormatDocumentRequest
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
Auto Trait Implementations§
impl Freeze for FormatDocumentRequest
impl RefUnwindSafe for FormatDocumentRequest
impl Send for FormatDocumentRequest
impl Sync for FormatDocumentRequest
impl Unpin for FormatDocumentRequest
impl UnsafeUnpin for FormatDocumentRequest
impl UnwindSafe for FormatDocumentRequest
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