pub struct Context { /* private fields */ }
Expand description
Additional parameters that influence (de)serializetion through
Encode
and [‘Decode’].
Implementations§
Source§impl Context
impl Context
Sourcepub const fn with_struct_style(self, struct_style: StructStyle) -> Self
pub const fn with_struct_style(self, struct_style: StructStyle) -> Self
A builder-style method which sets struct_style
and returns self
by
value.
Sourcepub fn struct_style(&self) -> StructStyle
pub fn struct_style(&self) -> StructStyle
Returns the style of encoding for structs set by this context.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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