pub struct DiffAdapter {
pub from: AppManifest,
}Expand description
A storage adapter that plans the transition from an old manifest to a new one.
Fields§
§from: AppManifestTrait Implementations§
Source§impl StorageAdapter for DiffAdapter
impl StorageAdapter for DiffAdapter
Source§fn plan_schema(&self, target: &AppManifest) -> Result<SchemaPlan, StorageError>
fn plan_schema(&self, target: &AppManifest) -> Result<SchemaPlan, StorageError>
Produce a plan that would bring storage in line with the target manifest.
Source§fn apply_schema(&self, _plan: &SchemaPlan) -> Result<(), StorageError>
fn apply_schema(&self, _plan: &SchemaPlan) -> Result<(), StorageError>
Apply a schema plan. Not implemented by dry-run adapters.
Auto Trait Implementations§
impl Freeze for DiffAdapter
impl RefUnwindSafe for DiffAdapter
impl Send for DiffAdapter
impl Sync for DiffAdapter
impl Unpin for DiffAdapter
impl UnsafeUnpin for DiffAdapter
impl UnwindSafe for DiffAdapter
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