pub enum ConfluentWirePolicy {
Raw,
Standard,
Protobuf,
}Expand description
Policy for stripping Confluent Schema Registry wire format prefix from messages.
Variants§
Raw
No prefix stripping — bytes are raw protobuf wire format. This is the default.
Standard
Strip 5-byte Confluent header (1 magic byte + 4-byte schema ID). Use with Avro and JSON Schema.
Protobuf
Strip 5-byte Confluent header plus varint-encoded message index array. Use with Protobuf schemas in Confluent Schema Registry.
Trait Implementations§
Source§impl Clone for ConfluentWirePolicy
impl Clone for ConfluentWirePolicy
Source§fn clone(&self) -> ConfluentWirePolicy
fn clone(&self) -> ConfluentWirePolicy
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 moreimpl Copy for ConfluentWirePolicy
Source§impl Debug for ConfluentWirePolicy
impl Debug for ConfluentWirePolicy
Source§impl Default for ConfluentWirePolicy
impl Default for ConfluentWirePolicy
Source§fn default() -> ConfluentWirePolicy
fn default() -> ConfluentWirePolicy
Returns the “default value” for a type. Read more
impl Eq for ConfluentWirePolicy
Source§impl PartialEq for ConfluentWirePolicy
impl PartialEq for ConfluentWirePolicy
Source§fn eq(&self, other: &ConfluentWirePolicy) -> bool
fn eq(&self, other: &ConfluentWirePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConfluentWirePolicy
Auto Trait Implementations§
impl Freeze for ConfluentWirePolicy
impl RefUnwindSafe for ConfluentWirePolicy
impl Send for ConfluentWirePolicy
impl Sync for ConfluentWirePolicy
impl Unpin for ConfluentWirePolicy
impl UnsafeUnpin for ConfluentWirePolicy
impl UnwindSafe for ConfluentWirePolicy
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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.