pub struct JsonWriter { /* private fields */ }Expand description
JSON output writer
Implementations§
Source§impl JsonWriter
impl JsonWriter
pub fn new(output_path: Option<PathBuf>, pretty: bool) -> Self
Sourcepub fn file(path: impl Into<PathBuf>, pretty: bool) -> Self
pub fn file(path: impl Into<PathBuf>, pretty: bool) -> Self
Create a writer that outputs to a file
pub fn output_path(&self) -> Option<&Path>
pub fn is_pretty(&self) -> bool
Trait Implementations§
Source§impl Clone for JsonWriter
impl Clone for JsonWriter
Source§fn clone(&self) -> JsonWriter
fn clone(&self) -> JsonWriter
Returns a duplicate of the value. Read more
1.0.0 · 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 JsonWriter
impl Debug for JsonWriter
Auto Trait Implementations§
impl Freeze for JsonWriter
impl RefUnwindSafe for JsonWriter
impl Send for JsonWriter
impl Sync for JsonWriter
impl Unpin for JsonWriter
impl UnsafeUnpin for JsonWriter
impl UnwindSafe for JsonWriter
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