#[non_exhaustive]pub struct SerializeOptions {
pub line_ending: LineEnding,
pub final_newline: bool,
pub bullet: Option<BulletMarker>,
pub ordered_delimiter: Option<OrderedDelimiter>,
pub fence_marker: Option<FenceMarker>,
}Expand description
Output-style options for serialization. Defaults: LF, trailing newline, and the list markers and code fences the AST records.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.line_ending: LineEndingNewline style to emit.
final_newline: boolWhether to end the output with a trailing newline.
bullet: Option<BulletMarker>The bullet for unordered lists: None, the default, keeps the marker
each list records; Some writes every unordered list with it.
ordered_delimiter: Option<OrderedDelimiter>The delimiter for ordered-list markers: None, the default, keeps the
delimiter each list records; Some writes every ordered list with it.
fence_marker: Option<FenceMarker>The fence char for fenced code blocks: None, the default, keeps the
fence each block records; Some writes every fenced block with it,
except that an info string holding a backtick always takes tildes.
Trait Implementations§
Source§impl Clone for SerializeOptions
impl Clone for SerializeOptions
Source§impl Debug for SerializeOptions
impl Debug for SerializeOptions
Source§impl Default for SerializeOptions
impl Default for SerializeOptions
impl Eq for SerializeOptions
Source§impl PartialEq for SerializeOptions
impl PartialEq for SerializeOptions
impl StructuralPartialEq for SerializeOptions
Auto Trait Implementations§
impl Freeze for SerializeOptions
impl RefUnwindSafe for SerializeOptions
impl Send for SerializeOptions
impl Sync for SerializeOptions
impl Unpin for SerializeOptions
impl UnsafeUnpin for SerializeOptions
impl UnwindSafe for SerializeOptions
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