pub struct DeserializeConfig { /* private fields */ }Expand description
Deserialization safety/configuration options.
Implementations§
Source§impl DeserializeConfig
impl DeserializeConfig
Sourcepub const fn max_collection_elements(self, max_collection_elements: u64) -> Self
pub const fn max_collection_elements(self, max_collection_elements: u64) -> Self
Set the maximum number of elements permitted in any decoded collection.
Sourcepub const fn get_max_collection_elements(self) -> u64
pub const fn get_max_collection_elements(self) -> u64
Get the configured maximum number of collection elements.
Trait Implementations§
Source§impl Clone for DeserializeConfig
impl Clone for DeserializeConfig
Source§fn clone(&self) -> DeserializeConfig
fn clone(&self) -> DeserializeConfig
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 DeserializeConfig
impl Debug for DeserializeConfig
Source§impl Default for DeserializeConfig
impl Default for DeserializeConfig
Source§impl PartialEq for DeserializeConfig
impl PartialEq for DeserializeConfig
impl Copy for DeserializeConfig
impl Eq for DeserializeConfig
impl StructuralPartialEq for DeserializeConfig
Auto Trait Implementations§
impl Freeze for DeserializeConfig
impl RefUnwindSafe for DeserializeConfig
impl Send for DeserializeConfig
impl Sync for DeserializeConfig
impl Unpin for DeserializeConfig
impl UnsafeUnpin for DeserializeConfig
impl UnwindSafe for DeserializeConfig
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§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.