pub enum Change {
Add(File),
Update(FileId, String),
Delete(FileId),
}Expand description
Represents a single, deferred database operation.
An instruction to be applied to a Database as part of a ChangeLog.
Variants§
Add(File)
An instruction to add a new file.
Update(FileId, String)
An instruction to update an existing file, identified by its FileId.
Delete(FileId)
An instruction to delete an existing file, identified by its FileId.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnwindSafe for Change
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