pub struct DjotExportOptions {
pub alignment: bool,
pub line_height: bool,
pub direction: bool,
pub non_breakable_lines: bool,
pub background_color: bool,
}Expand description
Selects which optional block attributes the djot exporter emits as
{key=value} block attributes. A disabled attribute is omitted from the
output even when the model carries a value for it.
Fields§
§alignment: boolEmit paragraph alignment as {alignment=…}.
line_height: boolEmit line height as {line_height=…}.
direction: boolEmit text direction as {direction=…}.
non_breakable_lines: boolEmit non-breakable lines as {non_breakable_lines=…}.
background_color: boolEmit block background color as {background_color=…}.
Implementations§
Trait Implementations§
Source§impl Clone for DjotExportOptions
impl Clone for DjotExportOptions
Source§fn clone(&self) -> DjotExportOptions
fn clone(&self) -> DjotExportOptions
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 moreimpl Copy for DjotExportOptions
Source§impl Debug for DjotExportOptions
impl Debug for DjotExportOptions
Source§impl Default for DjotExportOptions
impl Default for DjotExportOptions
Source§impl<'de> Deserialize<'de> for DjotExportOptions
impl<'de> Deserialize<'de> for DjotExportOptions
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
impl Eq for DjotExportOptions
Source§impl PartialEq for DjotExportOptions
impl PartialEq for DjotExportOptions
Source§fn eq(&self, other: &DjotExportOptions) -> bool
fn eq(&self, other: &DjotExportOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DjotExportOptions
impl Serialize for DjotExportOptions
impl StructuralPartialEq for DjotExportOptions
Auto Trait Implementations§
impl Freeze for DjotExportOptions
impl RefUnwindSafe for DjotExportOptions
impl Send for DjotExportOptions
impl Sync for DjotExportOptions
impl Unpin for DjotExportOptions
impl UnsafeUnpin for DjotExportOptions
impl UnwindSafe for DjotExportOptions
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