pub struct CompactJsonWriter<W: Write> { /* private fields */ }Expand description
A writer that outputs as Json with no extra spaces for the key and the generated value
Trait Implementations§
Source§impl<W: Write> GeneratedValueWriterBase<W> for CompactJsonWriter<W>
impl<W: Write> GeneratedValueWriterBase<W> for CompactJsonWriter<W>
Source§fn from_writer(writer: W) -> Self
fn from_writer(writer: W) -> Self
Create from the writer
Source§fn into_inner(self) -> W
fn into_inner(self) -> W
Take writer
Source§fn flush(&mut self) -> SchemaResult<()>
fn flush(&mut self) -> SchemaResult<()>
Flush buffers that have not been written yet
Source§fn write_after_all_generated<R: Randomizer + ?Sized>(
&mut self,
use_key_header: bool,
schema: &Schema<R>,
rng: &mut R,
count: u64,
) -> SchemaResult<()>
fn write_after_all_generated<R: Randomizer + ?Sized>( &mut self, use_key_header: bool, schema: &Schema<R>, rng: &mut R, count: u64, ) -> SchemaResult<()>
Generate all values and then write keys and the values
Source§fn write_with_generate<R: Randomizer + ?Sized>(
&mut self,
use_key_header: bool,
schema: &Schema<R>,
rng: &mut R,
count: u64,
) -> SchemaResult<()>
fn write_with_generate<R: Randomizer + ?Sized>( &mut self, use_key_header: bool, schema: &Schema<R>, rng: &mut R, count: u64, ) -> SchemaResult<()>
Write keys and generated values while generating values
Auto Trait Implementations§
impl<W> Freeze for CompactJsonWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for CompactJsonWriter<W>where
W: RefUnwindSafe,
impl<W> Send for CompactJsonWriter<W>where
W: Send,
impl<W> Sync for CompactJsonWriter<W>where
W: Sync,
impl<W> Unpin for CompactJsonWriter<W>where
W: Unpin,
impl<W> UnwindSafe for CompactJsonWriter<W>where
W: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more