Skip to main content

snapshot_model

Function snapshot_model 

Source
pub fn snapshot_model<T>(model: &T) -> Option<Value>
where T: Serialize,
Expand description

Convert a model into the JSON snapshot used by the audit log. Returns None if the model isn’t serializable; that should never happen for generated models which derive Serialize.