pub struct JsonPrettyEncoder;Expand description
Encodes CDC events as pretty-printed (human-readable) JSON.
Indentation uses the serde_json default (two spaces). Useful for development, debugging, and low-volume log sinks. Not recommended for high-throughput production pipelines due to increased byte overhead.
Content-Type: application/json
Trait Implementations§
Source§impl Clone for JsonPrettyEncoder
impl Clone for JsonPrettyEncoder
Source§fn clone(&self) -> JsonPrettyEncoder
fn clone(&self) -> JsonPrettyEncoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JsonPrettyEncoder
impl Debug for JsonPrettyEncoder
Source§impl Default for JsonPrettyEncoder
impl Default for JsonPrettyEncoder
Source§fn default() -> JsonPrettyEncoder
fn default() -> JsonPrettyEncoder
Returns the “default value” for a type. Read more
Source§impl EventEncoder for JsonPrettyEncoder
impl EventEncoder for JsonPrettyEncoder
Source§fn encode(&self, event: &Event) -> Result<EncodedOutput>
fn encode(&self, event: &Event) -> Result<EncodedOutput>
Encode a single CDC event into bytes.
Source§fn content_type(&self) -> &'static str
fn content_type(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for JsonPrettyEncoder
impl RefUnwindSafe for JsonPrettyEncoder
impl Send for JsonPrettyEncoder
impl Sync for JsonPrettyEncoder
impl Unpin for JsonPrettyEncoder
impl UnsafeUnpin for JsonPrettyEncoder
impl UnwindSafe for JsonPrettyEncoder
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