Skip to main content

JSON

Constant JSON 

Source
pub const JSON: ColumnMarker;
Expand description

Enables JSON serialization with TEXT storage.

ยงExample

#[column(json)]
metadata: UserMetadata,

Requires the serde feature. The field type must implement Serialize and Deserialize.