pub struct NoRestoreHooks;Expand description
RestoreHooks with every default: no extra checks, no same-type
references.
Trait Implementations§
Source§impl Clone for NoRestoreHooks
impl Clone for NoRestoreHooks
impl Copy for NoRestoreHooks
Source§impl Debug for NoRestoreHooks
impl Debug for NoRestoreHooks
Source§impl Default for NoRestoreHooks
impl Default for NoRestoreHooks
Source§impl RestoreHooks for NoRestoreHooks
impl RestoreHooks for NoRestoreHooks
Source§fn check_patch(
&self,
id: &Id,
patch: Option<&PatchObject>,
) -> Result<(), Box<SetError>>
fn check_patch( &self, id: &Id, patch: Option<&PatchObject>, ) -> Result<(), Box<SetError>>
Check a restore entry’s patch as the type checks an update patch
(
#creationId references, metadata entries, …). The default
accepts it. Read moreSource§fn same_type_references(&self, final_version: &Map<String, Value>) -> Vec<Id>
fn same_type_references(&self, final_version: &Map<String, Value>) -> Vec<Id>
The ids of objects of the same type that
final_version refers to
(a Mailbox’s or FileNode’s parentId). Restores that refer to
another restore key run after it (-04 §5.1: “as for creates”). The
default: none, so restores run in key order.Auto Trait Implementations§
impl Forget for NoRestoreHooks
impl Freeze for NoRestoreHooks
impl Move for NoRestoreHooks
impl RefUnwindSafe for NoRestoreHooks
impl Send for NoRestoreHooks
impl Sync for NoRestoreHooks
impl Unpin for NoRestoreHooks
impl UnsafeUnpin for NoRestoreHooks
impl UnwindSafe for NoRestoreHooks
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