pub enum DeletePreimage {
Entity(Box<EntityRecord>),
Note(Box<Note>),
Edge(Box<Link>),
}Expand description
Full prior record state, tagged by substrate to avoid its embedded kind field.
An entity is carried whole, with the keys it holds and its aliases (ADR-221 section 4), so the record a delete removes is the record a restore would bring back.
Variants§
Trait Implementations§
Source§impl Clone for DeletePreimage
impl Clone for DeletePreimage
Source§impl Debug for DeletePreimage
impl Debug for DeletePreimage
Source§impl<'de> Deserialize<'de> for DeletePreimage
impl<'de> Deserialize<'de> for DeletePreimage
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for DeletePreimage
impl Freeze for DeletePreimagewhere
*const EntityRecord is !null: Freeze,
PhantomData<EntityRecord>: Freeze,
*const Note is !null: Freeze,
PhantomData<Note>: Freeze,
*const Link is !null: Freeze,
PhantomData<Link>: Freeze,
impl Move for DeletePreimage
impl RefUnwindSafe for DeletePreimage
impl Send for DeletePreimage
impl Sync for DeletePreimage
impl Unpin for DeletePreimage
impl UnsafeUnpin for DeletePreimagewhere
*const EntityRecord is !null: UnsafeUnpin,
PhantomData<EntityRecord>: UnsafeUnpin,
*const Note is !null: UnsafeUnpin,
PhantomData<Note>: UnsafeUnpin,
*const Link is !null: UnsafeUnpin,
PhantomData<Link>: UnsafeUnpin,
impl UnwindSafe for DeletePreimage
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