pub struct JsonCodecSettings {
pub use_json_name: bool,
pub default_timestamp_format: Format,
pub allow_unknown_union_members: bool,
}Expand description
Configuration for JSON codec behavior.
Fields§
§use_json_name: boolWhether to use the @jsonName trait for member names.
default_timestamp_format: FormatDefault timestamp format to use when not specified by @timestampFormat trait.
allow_unknown_union_members: boolWhether to allow unknown union members during deserialization.
Trait Implementations§
Source§impl Clone for JsonCodecSettings
impl Clone for JsonCodecSettings
Source§fn clone(&self) -> JsonCodecSettings
fn clone(&self) -> JsonCodecSettings
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 JsonCodecSettings
impl Debug for JsonCodecSettings
Auto Trait Implementations§
impl Freeze for JsonCodecSettings
impl RefUnwindSafe for JsonCodecSettings
impl Send for JsonCodecSettings
impl Sync for JsonCodecSettings
impl Unpin for JsonCodecSettings
impl UnwindSafe for JsonCodecSettings
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more