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

pub trait Format { }
Expand description

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

Serialize into an i8

Serialize into a u8

Serialize into an i16

Serialize into a u16

Serialize into an i32

Serialize into a u32

Serialize into an i64

Serialize into a u64

Serialize into a f32

Serialize into a f64

Serialize into a bool

Serialize into a String

Serialize into an i128

Serialize into a u128

Implementors

Use lowercase characters

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

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

Use uppercase characters