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§
Source§impl DjotExportOptions
impl DjotExportOptions
Sourcepub const fn all() -> DjotExportOptions
pub const fn all() -> DjotExportOptions
Every optional block attribute emitted — the lossless default.
Sourcepub const fn none() -> DjotExportOptions
pub const fn none() -> DjotExportOptions
No optional block attributes — emit only the core structural and inline feature set, dropping any block-attribute styling.
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§fn default() -> DjotExportOptions
fn default() -> DjotExportOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DjotExportOptions
impl<'de> Deserialize<'de> for DjotExportOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DjotExportOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DjotExportOptions, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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