pub struct BackupImport { /* private fields */ }Available on crate feature
archive only.Expand description
Backup import.
Implementations§
Source§impl BackupImport
impl BackupImport
Sourcepub fn list_source_accounts(&self) -> Result<Vec<AccountRecord>, Error>
pub fn list_source_accounts(&self) -> Result<Vec<AccountRecord>, Error>
List accounts in the temporary source database.
Sourcepub fn list_target_accounts(&self) -> Result<Vec<AccountRecord>, Error>
pub fn list_target_accounts(&self) -> Result<Vec<AccountRecord>, Error>
List accounts in the target database.
Sourcepub fn migrate_source(&mut self) -> Result<Report, Error>
pub fn migrate_source(&mut self) -> Result<Report, Error>
Run migrations on the temporary source database.
Sourcepub fn migrate_target(&mut self) -> Result<Report, Error>
pub fn migrate_target(&mut self) -> Result<Report, Error>
Run migrations on the target database.
Sourcepub async fn import_account(
&mut self,
record: &AccountRecord,
) -> Result<(), Error>
pub async fn import_account( &mut self, record: &AccountRecord, ) -> Result<(), Error>
Try to import an account from the source to the target database.
It is an error if the account already exists in the target database.
Auto Trait Implementations§
impl !Freeze for BackupImport
impl !RefUnwindSafe for BackupImport
impl Send for BackupImport
impl !Sync for BackupImport
impl Unpin for BackupImport
impl !UnwindSafe for BackupImport
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