pub struct JsonDecoderOptions {
pub batch_size: usize,
pub max_size: Option<usize>,
}Expand description
Options for configuring JSON decoding.
Fields§
§batch_size: usizeBatch size for parsing.
max_size: Option<usize>Maximum size of a single message in bytes.
Trait Implementations§
Source§impl Clone for JsonDecoderOptions
impl Clone for JsonDecoderOptions
Source§fn clone(&self) -> JsonDecoderOptions
fn clone(&self) -> JsonDecoderOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 JsonDecoderOptions
impl Debug for JsonDecoderOptions
Source§impl DecoderConfig for JsonDecoderOptions
impl DecoderConfig for JsonDecoderOptions
Source§impl Default for JsonDecoderOptions
impl Default for JsonDecoderOptions
Source§impl<'de> Deserialize<'de> for JsonDecoderOptions
impl<'de> Deserialize<'de> for JsonDecoderOptions
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
Source§impl PartialEq for JsonDecoderOptions
impl PartialEq for JsonDecoderOptions
Source§impl Serialize for JsonDecoderOptions
impl Serialize for JsonDecoderOptions
impl StructuralPartialEq for JsonDecoderOptions
Auto Trait Implementations§
impl Freeze for JsonDecoderOptions
impl RefUnwindSafe for JsonDecoderOptions
impl Send for JsonDecoderOptions
impl Sync for JsonDecoderOptions
impl Unpin for JsonDecoderOptions
impl UnsafeUnpin for JsonDecoderOptions
impl UnwindSafe for JsonDecoderOptions
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