(approval: RequestApproval)
| 5 | |
| 6 | impl 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 | } |
nothing calls this directly
no test coverage detected