pub enum Compatibility {
Exact,
Forward {
reader_version: u32,
writer_version: u32,
},
Backward {
reader_version: u32,
writer_version: u32,
},
Unknown {
writer_version: String,
},
}Expand description
Outcome of a schema compatibility check.
Variants§
Exact
Versions match exactly.
Forward
Reader is newer than writer — forward compatible (reader can read older data).
Backward
Writer is newer than reader — incompatible (needs migration).
Unknown
Version string doesn’t match expected format for this schema kind.
Implementations§
Source§impl Compatibility
impl Compatibility
Sourcepub fn is_compatible(&self) -> bool
pub fn is_compatible(&self) -> bool
Whether the reader can process data from the writer.
Trait Implementations§
Source§impl Clone for Compatibility
impl Clone for Compatibility
Source§fn clone(&self) -> Compatibility
fn clone(&self) -> Compatibility
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 Compatibility
impl Debug for Compatibility
Source§impl Display for Compatibility
impl Display for Compatibility
Source§impl PartialEq for Compatibility
impl PartialEq for Compatibility
impl Eq for Compatibility
impl StructuralPartialEq for Compatibility
Auto Trait Implementations§
impl Freeze for Compatibility
impl RefUnwindSafe for Compatibility
impl Send for Compatibility
impl Sync for Compatibility
impl Unpin for Compatibility
impl UnsafeUnpin for Compatibility
impl UnwindSafe for Compatibility
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,
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.