Rust

destination

Module

Where resources go.

Contents

use utopia_migration::Destination;
Rust
pub trait Destination: crate::target::AsAny + Send

A service resources are imported into.

Implemented byAppwriteCsvJsonLocal
use utopia_migration::destination::run;
Rust
pub async fn run<D: Destination + ?Sized>(destination: &mut D, source: &mut dyn Source, resources: &[String], callback: &mut Callback<'_>, root_resource_id: &str, root_resource_type: &str) -> Result<()>

The default [Destination::run]: the source exports into this destination's import, through the selector when one is set.

Rust
pub type Callback<'a> = dyn FnMut(&[ResourceRef]) -> Result<()> + Send + 'a

Called with each batch a destination imported.