pub enum CompatibilityLevel {
Backward,
BackwardTransitive,
Forward,
ForwardTransitive,
Full,
FullTransitive,
None,
}Expand description
Compatibility level for schema evolution
| Level | Description | Can Read |
|---|---|---|
| BACKWARD | New schema can read old data | Old → New ✓ |
| FORWARD | Old schema can read new data | New → Old ✓ |
| FULL | Both directions | Both ✓ |
| NONE | No checking | - |
Variants§
Backward
New schema can read data written by old schema (default) Safe for consumers to upgrade first
BackwardTransitive
New schema can read data written by old schema (transitive)
Forward
Old schema can read data written by new schema Safe for producers to upgrade first
ForwardTransitive
Old schema can read data written by new schema (transitive)
Full
Both backward and forward compatible
FullTransitive
Both backward and forward compatible (transitive)
None
No compatibility checking
Implementations§
Source§impl CompatibilityLevel
impl CompatibilityLevel
Sourcepub fn is_backward(&self) -> bool
pub fn is_backward(&self) -> bool
Check if this level requires backward compatibility
Sourcepub fn is_forward(&self) -> bool
pub fn is_forward(&self) -> bool
Check if this level requires forward compatibility
Sourcepub fn is_transitive(&self) -> bool
pub fn is_transitive(&self) -> bool
Check if this level is transitive (checks all versions)
Trait Implementations§
Source§impl Clone for CompatibilityLevel
impl Clone for CompatibilityLevel
Source§fn clone(&self) -> CompatibilityLevel
fn clone(&self) -> CompatibilityLevel
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 CompatibilityLevel
impl Debug for CompatibilityLevel
Source§impl Default for CompatibilityLevel
impl Default for CompatibilityLevel
Source§fn default() -> CompatibilityLevel
fn default() -> CompatibilityLevel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CompatibilityLevel
impl<'de> Deserialize<'de> for CompatibilityLevel
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 Display for CompatibilityLevel
impl Display for CompatibilityLevel
Source§impl FromStr for CompatibilityLevel
impl FromStr for CompatibilityLevel
Source§impl Hash for CompatibilityLevel
impl Hash for CompatibilityLevel
Source§impl PartialEq for CompatibilityLevel
impl PartialEq for CompatibilityLevel
Source§impl Serialize for CompatibilityLevel
impl Serialize for CompatibilityLevel
impl Copy for CompatibilityLevel
impl Eq for CompatibilityLevel
impl StructuralPartialEq for CompatibilityLevel
Auto Trait Implementations§
impl Freeze for CompatibilityLevel
impl RefUnwindSafe for CompatibilityLevel
impl Send for CompatibilityLevel
impl Sync for CompatibilityLevel
impl Unpin for CompatibilityLevel
impl UnsafeUnpin for CompatibilityLevel
impl UnwindSafe for CompatibilityLevel
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.