pub struct FormatDocumentParams {
pub style: StyleInput,
pub style_overrides: Option<String>,
pub locale: Option<String>,
pub output_format: Option<OutputFormat>,
pub refs: Value,
pub citations: Value,
pub document_options: Option<DocumentOptions>,
}Expand description
Parameters for the format_document method (schema mirror of FormatDocumentRequest).
Fields§
§style: StyleInputStyle identifier, path, URI, or inline YAML.
style_overrides: Option<String>Optional partial-style overlay (YAML or JSON) merged over the resolved base
style for this request only. Uses the same null-aware, typed-merge semantics
as extends inheritance. The base style is never mutated.
locale: Option<String>Optional BCP 47 locale override.
output_format: Option<OutputFormat>Output format (plain, html, djot, latex, typst). Defaults to plain.
refs: ValueBibliography input as RefsInput: path (YAML/JSON/CBOR or .bib), inline YAML,
inline JSON, inline BibLaTeX ({"kind":"biblatex","value":"@book{…}"}) or legacy bare map.
citations: ValueOrdered citations as they appear in the document.
document_options: Option<DocumentOptions>Optional document-level configuration.
Trait Implementations§
Source§impl Debug for FormatDocumentParams
impl Debug for FormatDocumentParams
Source§impl<'de> Deserialize<'de> for FormatDocumentParams
impl<'de> Deserialize<'de> for FormatDocumentParams
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 FormatDocumentParams
impl RefUnwindSafe for FormatDocumentParams
impl Send for FormatDocumentParams
impl Sync for FormatDocumentParams
impl Unpin for FormatDocumentParams
impl UnsafeUnpin for FormatDocumentParams
impl UnwindSafe for FormatDocumentParams
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