#[non_exhaustive]pub struct SerializeOptions {
pub line_ending: LineEnding,
pub final_newline: bool,
pub bullet: ListDelimiter,
pub ordered_delimiter: ListDelimiter,
pub fence_marker: FenceMarker,
}Expand description
Output-style options for serialization. Defaults: LF, trailing newline, -
bullets, . ordered markers, and backtick code fences.
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: ListDelimiterThe bullet marker for unordered lists.
ordered_delimiter: ListDelimiterThe delimiter for ordered-list markers (e.g. . → 1.).
fence_marker: FenceMarkerThe fence character for fenced code blocks.
Trait Implementations§
Source§impl Clone for SerializeOptions
impl Clone for SerializeOptions
Source§fn clone(&self) -> SerializeOptions
fn clone(&self) -> SerializeOptions
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 moreSource§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
Source§fn eq(&self, other: &SerializeOptions) -> bool
fn eq(&self, other: &SerializeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.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