pub struct Step {
pub at: Version,
pub id: &'static str,
pub apply: Apply,
}Expand description
One schema change: apply runs on every object it concerns when the
source version predates at.
Fields§
§at: VersionThe first release that shipped the new shape.
id: &'static strA stable identifier, reported in crate::Migrated::steps.
apply: ApplyThe rewrite, which must only touch keys present in its input.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnsafeUnpin for Step
impl UnwindSafe for Step
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