MCPcopy Create free account
hub / github.com/dfinity/orbit / from

Method from

core/upgrader/api/src/lib.rs:222–228  ·  view source on GitHub ↗
(snapshot: mgmt::Snapshot)

Source from the content-addressed store, hash-verified

220
221impl 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)]

Callers 15

updateMethod · 0.45
blobToHumanReadableFunction · 0.45
arrayBufferToHexFunction · 0.45
normalizeFunction · 0.45
connectToFunction · 0.45
mapConfiguredMethodCallsFunction · 0.45
runMethod · 0.45
toBlobStringFunction · 0.45

Calls 1

timestamp_to_rfc3339Function · 0.85

Tested by 2

fiveActiveFunction · 0.36
fiveActiveUsersFunction · 0.36