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

Method from

core/station/impl/src/mappers/request.rs:129–136  ·  view source on GitHub ↗
(dto: RequestExecutionScheduleDTO)

Source from the content-addressed store, hash-verified

127
128impl From<RequestExecutionScheduleDTO> for RequestExecutionPlan {
129 fn from(dto: RequestExecutionScheduleDTO) -> Self {
130 match dto {
131 RequestExecutionScheduleDTO::Immediate => Self::Immediate,
132 RequestExecutionScheduleDTO::Scheduled { execution_time } => Self::Scheduled {
133 execution_time: rfc3339_to_timestamp(&execution_time),
134 },
135 }
136 }
137}
138
139impl From<RequestExecutionPlan> for RequestExecutionScheduleDTO {

Callers

nothing calls this directly

Calls 3

rfc3339_to_timestampFunction · 0.85
timestamp_to_rfc3339Function · 0.85
mapMethod · 0.80

Tested by

no test coverage detected