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

Method from

core/station/impl/src/mappers/request_approval.rs:7–16  ·  view source on GitHub ↗
(approval: RequestApproval)

Source from the content-addressed store, hash-verified

5
6impl From<RequestApproval> for RequestApprovalDTO {
7 fn from(approval: RequestApproval) -> Self {
8 Self {
9 approver_id: Uuid::from_bytes(approval.approver_id)
10 .hyphenated()
11 .to_string(),
12 decided_at: timestamp_to_rfc3339(&approval.decided_dt),
13 status: approval.status.into(),
14 status_reason: approval.status_reason,
15 }
16 }
17}

Callers

nothing calls this directly

Calls 1

timestamp_to_rfc3339Function · 0.85

Tested by

no test coverage detected