pub struct Writer { /* private fields */ }Implementations§
Source§impl Writer
impl Writer
pub fn new() -> Self
Sourcepub fn set_root_array(&mut self, is_root_array: bool)
pub fn set_root_array(&mut self, is_root_array: bool)
Set whether the source JSON was a root-level array
pub fn intern(&mut self, s: &str) -> u32
pub fn add_schema(&mut self, schema: Schema) -> u16
pub fn add_union(&mut self, union: Union) -> u16
pub fn add_section( &mut self, key: &str, value: &Value, schema: Option<&Schema>, ) -> Result<()>
pub fn write<P: AsRef<Path>>(&self, path: P, compress: bool) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
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