Struct revolt_database::MigrationInfo
source · pub struct MigrationInfo {
pub id: i32,
pub revision: i32,
}Expand description
Document representing migration information
Fields§
§id: i32Unique Id
revision: i32Current database revision
Trait Implementations§
source§impl Clone for MigrationInfo
impl Clone for MigrationInfo
source§fn clone(&self) -> MigrationInfo
fn clone(&self) -> MigrationInfo
Returns a copy 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 MigrationInfo
impl Debug for MigrationInfo
source§impl<'de> Deserialize<'de> for MigrationInfo
impl<'de> Deserialize<'de> for MigrationInfo
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
source§impl PartialEq<MigrationInfo> for MigrationInfo
impl PartialEq<MigrationInfo> for MigrationInfo
source§fn eq(&self, other: &MigrationInfo) -> bool
fn eq(&self, other: &MigrationInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MigrationInfo
impl Serialize for MigrationInfo
impl Eq for MigrationInfo
impl StructuralEq for MigrationInfo
impl StructuralPartialEq for MigrationInfo
Auto Trait Implementations§
impl RefUnwindSafe for MigrationInfo
impl Send for MigrationInfo
impl Sync for MigrationInfo
impl Unpin for MigrationInfo
impl UnwindSafe for MigrationInfo
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.