pub struct MigrationState {
pub collected: BTreeMap<String, usize>,
pub not_collected: Vec<String>,
pub orphaned: Vec<String>,
}Expand description
Migration status, read from the lockfile. The manifest world cannot
know whether a module ships migrations at all — only what has been
collected — so not_collected means “no locked migration exists”,
phrased exactly that way in output.
Fields§
§collected: BTreeMap<String, usize>Resolved module -> number of locked migration files, ordered.
not_collected: Vec<String>Resolved modules with no locked migrations, sorted.
orphaned: Vec<String>Lockfile entries (module/id) whose module the resolved set no
longer carries, sorted — the migration files a removal orphans.
Trait Implementations§
Source§impl Clone for MigrationState
impl Clone for MigrationState
Source§impl Debug for MigrationState
impl Debug for MigrationState
Source§impl Default for MigrationState
impl Default for MigrationState
Source§impl<'de> Deserialize<'de> for MigrationState
impl<'de> Deserialize<'de> for MigrationState
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
impl Eq for MigrationState
Source§impl PartialEq for MigrationState
impl PartialEq for MigrationState
Source§impl Serialize for MigrationState
impl Serialize for MigrationState
impl StructuralPartialEq for MigrationState
Auto Trait Implementations§
impl Freeze for MigrationState
impl RefUnwindSafe for MigrationState
impl Send for MigrationState
impl Sync for MigrationState
impl Unpin for MigrationState
impl UnsafeUnpin for MigrationState
impl UnwindSafe for MigrationState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.