(snapshot: mgmt::Snapshot)
| 220 | |
| 221 | impl From<mgmt::Snapshot> for Snapshot { |
| 222 | fn from(snapshot: mgmt::Snapshot) -> Snapshot { |
| 223 | Snapshot { |
| 224 | snapshot_id: hex::encode(&snapshot.id), |
| 225 | taken_at_timestamp: timestamp_to_rfc3339(&snapshot.taken_at_timestamp), |
| 226 | total_size: snapshot.total_size, |
| 227 | } |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | #[derive(CandidType, Deserialize, Debug, Clone)] |