[][src]Enum nakadi_types::event_type::CompatibilityMode

pub enum CompatibilityMode {
    Compatible,
    Forward,
    None,
}

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

Compatible

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.

Forward

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.

None

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]

impl Copy for CompatibilityMode[src]

impl Debug for CompatibilityMode[src]

impl Default for CompatibilityMode[src]

impl<'de> Deserialize<'de> for CompatibilityMode[src]

impl Eq for CompatibilityMode[src]

impl PartialEq<CompatibilityMode> for CompatibilityMode[src]

impl Serialize for CompatibilityMode[src]

impl StructuralEq for CompatibilityMode[src]

impl StructuralPartialEq for CompatibilityMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,