pub struct StageRequest<'a> {
pub target: &'a BackupTarget<'a>,
pub config: &'a RwLock<AppConfig>,
pub committer: &'a dyn RestoreCommitter,
pub auth: &'a AuthClaims,
pub replace_identity: bool,
}Expand description
What a caller needs to stage a restore.
Fields§
§target: &'a BackupTarget<'a>§config: &'a RwLock<AppConfig>§committer: &'a dyn RestoreCommitter§auth: &'a AuthClaims§replace_identity: boolAllow the restore to replace a different identity this VTA already runs as. Without it a backup whose DID differs from the running one is refused — the guard against restoring the wrong file over a live agent. Disaster recovery onto a freshly set-up VTA (which has minted a DID of its own) is the case that needs it.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for StageRequest<'a>
impl<'a> !UnwindSafe for StageRequest<'a>
impl<'a> Freeze for StageRequest<'a>
impl<'a> Send for StageRequest<'a>
impl<'a> Sync for StageRequest<'a>
impl<'a> Unpin for StageRequest<'a>
impl<'a> UnsafeUnpin for StageRequest<'a>
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