pub struct JsonNewLineStreamFormat;Available on crate feature
json only.Expand description
JSON Lines: one JSON value per line, newline-terminated.
Implementations§
Trait Implementations§
Source§impl Clone for JsonNewLineStreamFormat
impl Clone for JsonNewLineStreamFormat
Source§fn clone(&self) -> JsonNewLineStreamFormat
fn clone(&self) -> JsonNewLineStreamFormat
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 moreimpl Copy for JsonNewLineStreamFormat
Source§impl Debug for JsonNewLineStreamFormat
impl Debug for JsonNewLineStreamFormat
Source§impl Default for JsonNewLineStreamFormat
impl Default for JsonNewLineStreamFormat
Source§fn default() -> JsonNewLineStreamFormat
fn default() -> JsonNewLineStreamFormat
Returns the “default value” for a type. Read more
Source§impl DefaultFormat for JsonNewLineStreamFormat
impl DefaultFormat for JsonNewLineStreamFormat
Source§fn default_format() -> Self
fn default_format() -> Self
The configuration to use when the caller supplied none.
Source§impl StreamFormat for JsonNewLineStreamFormat
impl StreamFormat for JsonNewLineStreamFormat
Source§fn format_name(&self) -> &'static str
fn format_name(&self) -> &'static str
A short, stable name, reported as the
format tracing field.Source§fn default_content_type(&self) -> &'static str
fn default_content_type(&self) -> &'static str
The
Content-Type this format emits when encoding.Source§fn accepts_content_type(&self, ct: &ContentType<'_>) -> bool
fn accepts_content_type(&self, ct: &ContentType<'_>) -> bool
Whether an incoming
Content-Type should be accepted as this format. Read moreSource§impl<T> StreamFormatDecode<T> for JsonNewLineStreamFormatwhere
T: for<'de> Deserialize<'de>,
impl<T> StreamFormatDecode<T> for JsonNewLineStreamFormatwhere
T: for<'de> Deserialize<'de>,
Source§type Framer = JsonNewLineCodec<T>
type Framer = JsonNewLineCodec<T>
Splits the body into records. Read more
Source§type Parser = IdentityParser
type Parser = IdentityParser
Deserialises framed records.
Source§fn framer(&self, options: &DecodeOptions) -> Self::Framer
fn framer(&self, options: &DecodeOptions) -> Self::Framer
Build a framer for one body.
Source§impl<T> StreamFormatEncode<T> for JsonNewLineStreamFormatwhere
T: Serialize,
impl<T> StreamFormatEncode<T> for JsonNewLineStreamFormatwhere
T: Serialize,
Auto Trait Implementations§
impl Freeze for JsonNewLineStreamFormat
impl RefUnwindSafe for JsonNewLineStreamFormat
impl Send for JsonNewLineStreamFormat
impl Sync for JsonNewLineStreamFormat
impl Unpin for JsonNewLineStreamFormat
impl UnsafeUnpin for JsonNewLineStreamFormat
impl UnwindSafe for JsonNewLineStreamFormat
Blanket Implementations§
impl<T> Allocation for T
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