pub struct Config {
pub use_indices: bool,
pub error_on_excess_data: bool,
pub max_size: Option<NonZeroUsize>,
}
Expand description
Configuration for (de-)serialization.
Fields§
§use_indices: bool
Whether to use indices instead of strings as keys for struct-fields/enum-variants.
error_on_excess_data: bool
Whether to return an error if there is excess data in the input.
max_size: Option<NonZeroUsize>
Maximum number of bytes to read or write, in any limit.
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)