pub struct ParentRestoreHooks(pub &'static str);Expand description
RestoreHooks for a type whose objects refer to others of the same
type through one Id-valued property, such as parentId.
Tuple Fields§
§0: &'static strTrait Implementations§
Source§impl Clone for ParentRestoreHooks
impl Clone for ParentRestoreHooks
impl Copy for ParentRestoreHooks
Source§impl Debug for ParentRestoreHooks
impl Debug for ParentRestoreHooks
Source§impl RestoreHooks for ParentRestoreHooks
impl RestoreHooks for ParentRestoreHooks
Source§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 ParentRestoreHooks
impl Freeze for ParentRestoreHooks
impl Move for ParentRestoreHooks
impl RefUnwindSafe for ParentRestoreHooks
impl Send for ParentRestoreHooks
impl Sync for ParentRestoreHooks
impl Unpin for ParentRestoreHooks
impl UnsafeUnpin for ParentRestoreHooks
impl UnwindSafe for ParentRestoreHooks
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