Skip to main content

JSON

Constant JSON 

Source
pub const JSON: ColumnMarker;
Expand description

Stores the field as JSON text, serialized with serde.

ยงExamples

#[column(json)]
metadata: UserMetadata,

Requires the serde feature. The field type must implement Serialize and Deserialize. Values are bound through json(?).