pub struct SchemaDomain {
pub name: &'static str,
pub migrations: &'static [Migration],
}Expand description
A store’s schema domain: its ledger name plus the ordered migration list.
Fields§
§name: &'static strLedger key. Kebab-case, stable forever (it is persisted in files).
migrations: &'static [Migration]Ordered migrations, versions contiguous from 1.
Implementations§
Source§impl SchemaDomain
impl SchemaDomain
Sourcepub fn supported_version(&self) -> i64
pub fn supported_version(&self) -> i64
Highest version this binary knows for the domain.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaDomain
impl RefUnwindSafe for SchemaDomain
impl Send for SchemaDomain
impl Sync for SchemaDomain
impl Unpin for SchemaDomain
impl UnsafeUnpin for SchemaDomain
impl UnwindSafe for SchemaDomain
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