pub enum ApplicationState {
Pending {
definition: Migration,
},
Applied {
definition: Migration,
application: MigrationWithMeta,
},
Changed {
definition: Migration,
application: MigrationWithMeta,
},
Removed {
application: MigrationWithMeta,
},
}Variants§
Implementations§
Source§impl ApplicationState
impl ApplicationState
pub fn is_pending(&self) -> bool
pub fn is_applied(&self) -> bool
pub fn is_changed(&self) -> bool
pub fn is_removed(&self) -> bool
pub fn name(&self) -> &str
Trait Implementations§
Source§impl Clone for ApplicationState
impl Clone for ApplicationState
Source§fn clone(&self) -> ApplicationState
fn clone(&self) -> ApplicationState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApplicationState
impl Debug for ApplicationState
Source§impl Display for ApplicationState
impl Display for ApplicationState
Source§impl PartialEq for ApplicationState
impl PartialEq for ApplicationState
impl Eq for ApplicationState
impl StructuralPartialEq for ApplicationState
Auto Trait Implementations§
impl Freeze for ApplicationState
impl RefUnwindSafe for ApplicationState
impl Send for ApplicationState
impl Sync for ApplicationState
impl Unpin for ApplicationState
impl UnwindSafe for ApplicationState
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