(self, dfx_orbit: &DfxOrbit)
| 173 | |
| 174 | impl RequestArgs { |
| 175 | pub async fn into_request(self, dfx_orbit: &DfxOrbit) -> anyhow::Result<CreateRequestInput> { |
| 176 | let operation = match self.action { |
| 177 | RequestArgsActions::Canister(canister_args) => { |
| 178 | canister_args.into_request(dfx_orbit).await? |
| 179 | } |
| 180 | RequestArgsActions::Asset(asset_args) => asset_args.into_request(dfx_orbit).await?, |
| 181 | RequestArgsActions::Permission(permission_args) => { |
| 182 | permission_args.into_request(dfx_orbit)? |
| 183 | } |
| 184 | }; |
| 185 | |
| 186 | Ok(CreateRequestInput { |
| 187 | operation, |
| 188 | title: self.title, |
| 189 | summary: self.summary, |
| 190 | execution_plan: None, |
| 191 | expiration_dt: None, |
| 192 | deduplication_key: None, |
| 193 | tags: None, |
| 194 | }) |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | #[derive(Debug, Clone, Parser)] |
no outgoing calls