[−][src]Enum nakadi_types::event_type::CompatibilityMode
Compatibility mode provides a mean for event owners to evolve their schema, given changes respect the semantics defined by this field.
It’s designed to be flexible enough so that producers can evolve their schemas while not inadvertently breaking existent consumers.
Once defined, the compatibility mode is fixed, since otherwise it would break a predefined contract, declared by the producer.
The default is forward
.
See also Nakadi Manual
Variants
Consumers can reliably parse events produced under different versions. Every event published
since the first version is still valid based on the newest schema. When in compatible mode, it’s allowed to
add new optional properties and definitions to an existing schema, but no other changes are allowed.
Under this mode, the following json-schema attributes are not supported: not
, patternProperties
,
additionalProperties
and additionalItems
. When validating events, additional properties is false
.
Compatible schema changes are allowed. It’s possible to use the full json schema specification for defining schemas. Consumers of forward compatible event types can safely read events tagged with the latest schema version as long as they follow the robustness principle.
Any schema modification is accepted, even if it might break existing producers or consumers. When validating events, no additional properties are accepted unless explicitly stated in the schema.
Trait Implementations
impl Clone for CompatibilityMode
[src]
pub fn clone(&self) -> CompatibilityMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CompatibilityMode
[src]
impl Debug for CompatibilityMode
[src]
impl Default for CompatibilityMode
[src]
impl<'de> Deserialize<'de> for CompatibilityMode
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for CompatibilityMode
[src]
impl PartialEq<CompatibilityMode> for CompatibilityMode
[src]
pub fn eq(&self, other: &CompatibilityMode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for CompatibilityMode
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for CompatibilityMode
[src]
impl StructuralPartialEq for CompatibilityMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for CompatibilityMode
impl Send for CompatibilityMode
impl Sync for CompatibilityMode
impl Unpin for CompatibilityMode
impl UnwindSafe for CompatibilityMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,