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 · 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 SerializerConfig
impl Debug for SerializerConfig
Source§impl Default for SerializerConfig
impl Default for SerializerConfig
Source§impl PartialEq for SerializerConfig
impl PartialEq for SerializerConfig
impl Copy for SerializerConfig
impl Eq for SerializerConfig
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