destination
ModuleWhere resources go.
Contents
use utopia_migration::Destination;Rust
pub trait Destination: crate::target::AsAny + SendA service resources are imported into.
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 + 'aCalled with each batch a destination imported.