pub struct EvolutionSpec<'a> {
pub migrates_from: Option<u32>,
pub changes: &'a [FieldChange<'a>],
}Expand description
How a schema version relates to the one before it.
Fields§
§migrates_from: Option<u32>The version this one migrates from, or None for the genesis version.
changes: &'a [FieldChange<'a>]Field-level changes relative to the predecessor.
Implementations§
Source§impl EvolutionSpec<'_>
impl EvolutionSpec<'_>
Sourcepub const GENESIS: EvolutionSpec<'static>
pub const GENESIS: EvolutionSpec<'static>
The genesis evolution: no predecessor, no changes.
Trait Implementations§
Source§impl<'a> Clone for EvolutionSpec<'a>
impl<'a> Clone for EvolutionSpec<'a>
Source§fn clone(&self) -> EvolutionSpec<'a>
fn clone(&self) -> EvolutionSpec<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for EvolutionSpec<'a>
Source§impl<'a> Debug for EvolutionSpec<'a>
impl<'a> Debug for EvolutionSpec<'a>
impl<'a> Eq for EvolutionSpec<'a>
Source§impl<'a> PartialEq for EvolutionSpec<'a>
impl<'a> PartialEq for EvolutionSpec<'a>
Source§fn eq(&self, other: &EvolutionSpec<'a>) -> bool
fn eq(&self, other: &EvolutionSpec<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for EvolutionSpec<'a>
Auto Trait Implementations§
impl<'a> Freeze for EvolutionSpec<'a>
impl<'a> RefUnwindSafe for EvolutionSpec<'a>
impl<'a> Send for EvolutionSpec<'a>
impl<'a> Sync for EvolutionSpec<'a>
impl<'a> Unpin for EvolutionSpec<'a>
impl<'a> UnsafeUnpin for EvolutionSpec<'a>
impl<'a> UnwindSafe for EvolutionSpec<'a>
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