pub struct SerializerConfig {
pub max_size: usize,
pub reject_unknown_fields: bool,
pub use_variable_length_encoding: bool,
}Fields§
§max_size: usize§reject_unknown_fields: bool§use_variable_length_encoding: boolImplementations§
Source§impl SerializerConfig
impl SerializerConfig
pub const fn new( max_size: usize, reject_unknown_fields: bool, use_variable_length_encoding: bool, ) -> Self
pub const fn msgpack_default() -> Self
pub const fn with_max_size(self, max_size: usize) -> Self
pub const fn with_reject_unknown_fields(self, reject: bool) -> Self
pub const fn with_variable_length_encoding(self, use_varint: bool) -> Self
pub fn validate_size(&self, size: usize) -> Result<()>
Trait Implementations§
Source§impl Clone for SerializerConfig
impl Clone for SerializerConfig
Source§fn clone(&self) -> SerializerConfig
fn clone(&self) -> SerializerConfig
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 SerializerConfig
Source§impl Debug for SerializerConfig
impl Debug for SerializerConfig
Source§impl Default for SerializerConfig
impl Default for SerializerConfig
impl Eq for SerializerConfig
Source§impl PartialEq for SerializerConfig
impl PartialEq for SerializerConfig
Source§fn eq(&self, other: &SerializerConfig) -> bool
fn eq(&self, other: &SerializerConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SerializerConfig
Auto Trait Implementations§
impl Freeze for SerializerConfig
impl RefUnwindSafe for SerializerConfig
impl Send for SerializerConfig
impl Sync for SerializerConfig
impl Unpin for SerializerConfig
impl UnsafeUnpin for SerializerConfig
impl UnwindSafe for SerializerConfig
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