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.