Trait serde_with::formats::Format[][src]

pub trait Format { }

Specify how to serialize/deserialize a type

The format specifier allows to configure how a value is serialized/deserialized. For example, you can serialize a timestamp as an integer using the UNIX epoch, as a string containing an integer, or as a string using ISO 8601. This Format traits allows more flexibility in configuring the format without the need to create a new type for each case.

Implementations on Foreign Types

impl Format for i8[src]

Serialize into an i8

impl Format for u8[src]

Serialize into a u8

impl Format for i16[src]

Serialize into an i16

impl Format for u16[src]

Serialize into a u16

impl Format for i32[src]

Serialize into an i32

impl Format for u32[src]

Serialize into a u32

impl Format for i64[src]

Serialize into an i64

impl Format for u64[src]

Serialize into a u64

impl Format for f32[src]

Serialize into a f32

impl Format for f64[src]

Serialize into a f64

impl Format for bool[src]

Serialize into a bool

impl Format for String[src]

Serialize into a String

impl Format for i128[src]

Serialize into an i128

impl Format for u128[src]

Serialize into a u128

Loading content...

Implementors

impl Format for Lowercase[src]

Use lowercase characters

impl Format for PreferMany[src]

Use in combination with OneOrMany. Always emit the list form.

impl Format for PreferOne[src]

Use in combination with OneOrMany. Emit single element for lists of size 1.

impl Format for Uppercase[src]

Use uppercase characters

Loading content...