pub struct JsonFormatterBuilder { /* private fields */ }Expand description
A builder for constructing JsonFormatter instances.
Implementations§
Source§impl JsonFormatterBuilder
impl JsonFormatterBuilder
Sourcepub fn with_indent(self, indent: usize) -> Self
pub fn with_indent(self, indent: usize) -> Self
Sets the indentation size.
§Arguments
indent- The number of indent characters to use for each level.
Sourcepub fn with_indent_char(self, char: char) -> Self
pub fn with_indent_char(self, char: char) -> Self
Sourcepub fn build(self) -> JsonFormatter
pub fn build(self) -> JsonFormatter
Builds and returns a JsonFormatter with the configured settings.
Auto Trait Implementations§
impl Freeze for JsonFormatterBuilder
impl RefUnwindSafe for JsonFormatterBuilder
impl Send for JsonFormatterBuilder
impl Sync for JsonFormatterBuilder
impl Unpin for JsonFormatterBuilder
impl UnwindSafe for JsonFormatterBuilder
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