pub struct FormatDocumentParams {
pub style: StyleInput,
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.
locale: Option<String>Optional BCP 47 locale override.
output_format: Option<OutputFormat>Output format (plain, html, djot, latex, typst). Defaults to plain.
refs: ValueBibliography (references) as a map of reference objects.
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