pub struct V2Importer { /* private fields */ }Expand description
Main V2 importer that orchestrates import operations
Implementations§
Source§impl V2Importer
impl V2Importer
Sourcepub fn from_export_dir(
export_dir: &Path,
target_graph_path: &Path,
import_config: V2ImportConfig,
) -> NativeResult<Self>
pub fn from_export_dir( export_dir: &Path, target_graph_path: &Path, import_config: V2ImportConfig, ) -> NativeResult<Self>
Create importer from export directory
Sourcepub fn validate_export(&self) -> NativeResult<ImportValidationReport>
pub fn validate_export(&self) -> NativeResult<ImportValidationReport>
Validate export before import
Sourcepub fn import(&self) -> NativeResult<ImportResult>
pub fn import(&self) -> NativeResult<ImportResult>
Perform import into target graph
Auto Trait Implementations§
impl Freeze for V2Importer
impl RefUnwindSafe for V2Importer
impl Send for V2Importer
impl Sync for V2Importer
impl Unpin for V2Importer
impl UnwindSafe for V2Importer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more