pub struct SchemaMigrationPolicy {
pub artifact: String,
pub current_version: u32,
pub min_readable_version: u32,
pub min_writable_version: u32,
pub automatic_migrations: BTreeMap<u32, u32>,
}Fields§
§artifact: String§current_version: u32§min_readable_version: u32§min_writable_version: u32§automatic_migrations: BTreeMap<u32, u32>Implementations§
Source§impl SchemaMigrationPolicy
impl SchemaMigrationPolicy
pub fn validate(&self) -> Result<(), DagMlError>
pub fn validate_read_version( &self, version: u32, owner: &str, ) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for SchemaMigrationPolicy
impl Clone for SchemaMigrationPolicy
Source§fn clone(&self) -> SchemaMigrationPolicy
fn clone(&self) -> SchemaMigrationPolicy
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 moreSource§impl Debug for SchemaMigrationPolicy
impl Debug for SchemaMigrationPolicy
Source§impl<'de> Deserialize<'de> for SchemaMigrationPolicy
impl<'de> Deserialize<'de> for SchemaMigrationPolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchemaMigrationPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchemaMigrationPolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SchemaMigrationPolicy
Source§impl PartialEq for SchemaMigrationPolicy
impl PartialEq for SchemaMigrationPolicy
Source§fn eq(&self, other: &SchemaMigrationPolicy) -> bool
fn eq(&self, other: &SchemaMigrationPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaMigrationPolicy
impl Serialize for SchemaMigrationPolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SchemaMigrationPolicy
Auto Trait Implementations§
impl Freeze for SchemaMigrationPolicy
impl RefUnwindSafe for SchemaMigrationPolicy
impl Send for SchemaMigrationPolicy
impl Sync for SchemaMigrationPolicy
impl Unpin for SchemaMigrationPolicy
impl UnsafeUnpin for SchemaMigrationPolicy
impl UnwindSafe for SchemaMigrationPolicy
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<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.