pub enum JsonFraming {
Single,
Ndjson,
Array,
}Expand description
How one payload is split into JSON documents.
Variants§
Single
The whole payload is one JSON document → one record. An empty or whitespace-only payload is a tombstone (zero records).
Ndjson
Newline-delimited JSON (JSON Lines): one JSON value per \n-separated
line → one record per line, with per-line error isolation.
Array
A top-level JSON array → one record per element, decoded in one pass
(a malformed array is handled atomically by OnError).
Trait Implementations§
Source§impl Clone for JsonFraming
impl Clone for JsonFraming
Source§fn clone(&self) -> JsonFraming
fn clone(&self) -> JsonFraming
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 JsonFraming
Source§impl Debug for JsonFraming
impl Debug for JsonFraming
Source§impl Default for JsonFraming
impl Default for JsonFraming
Source§fn default() -> JsonFraming
fn default() -> JsonFraming
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsonFraming
impl<'de> Deserialize<'de> for JsonFraming
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JsonFraming
Source§impl PartialEq for JsonFraming
impl PartialEq for JsonFraming
impl StructuralPartialEq for JsonFraming
Auto Trait Implementations§
impl Freeze for JsonFraming
impl RefUnwindSafe for JsonFraming
impl Send for JsonFraming
impl Sync for JsonFraming
impl Unpin for JsonFraming
impl UnsafeUnpin for JsonFraming
impl UnwindSafe for JsonFraming
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.