pub struct JsonCodec { /* private fields */ }Expand description
Built-in JSON codec.
Always available because serde_json backs the crate’s value model.
Defaults to pretty-printed output; JsonCodec::compact emits minimal
single-line JSON for machine-readable streams.
Implementations§
Trait Implementations§
Source§impl Codec for JsonCodec
impl Codec for JsonCodec
impl Copy for JsonCodec
Auto Trait Implementations§
impl Freeze for JsonCodec
impl RefUnwindSafe for JsonCodec
impl Send for JsonCodec
impl Sync for JsonCodec
impl Unpin for JsonCodec
impl UnsafeUnpin for JsonCodec
impl UnwindSafe for JsonCodec
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