MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / preview_mutation

Method preview_mutation

atomic-cli/src/service/mod.rs:458–480  ·  view source on GitHub ↗
(
        &self,
        request: pb::PreviewMutationRequest,
    )

Source from the content-addressed store, hash-verified

456 }
457
458 pub fn preview_mutation(
459 &self,
460 request: pb::PreviewMutationRequest,
461 ) -> CliResult<pb::PreviewMutationResponse> {
462 self.call(move |backend| async move {
463 match backend {
464 Backend::Local(state) => services::QueryImpl { state }
465 .preview_mutation(Request::new(request))
466 .await
467 .map(|response| response.into_inner()),
468 Backend::Reactor(channel) => {
469 let mut query =
470 pb::repository_query_service_client::RepositoryQueryServiceClient::new(
471 channel,
472 );
473 query
474 .preview_mutation(request)
475 .await
476 .map(|response| response.into_inner())
477 }
478 }
479 })
480 }
481
482 pub fn preview_restore(
483 &self,

Callers 2

insert_previewFunction · 0.45
unrecord_previewFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected