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

Method preview_mutation

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

Source from the content-addressed store, hash-verified

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