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

Method into_request

tools/dfx-orbit/src/args.rs:175–195  ·  view source on GitHub ↗
(self, dfx_orbit: &DfxOrbit)

Source from the content-addressed store, hash-verified

173
174impl 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)]

Callers 6

executeMethod · 0.45
change_controllersFunction · 0.45
canister_installFunction · 0.45
canister_callFunction · 0.45
asset_uploadFunction · 0.45
asset_validationFunction · 0.45

Calls

no outgoing calls

Tested by 4

change_controllersFunction · 0.36
canister_callFunction · 0.36
asset_uploadFunction · 0.36
asset_validationFunction · 0.36