pub enum SubjectNameStrategy {
RecordNameStrategy(String),
TopicNameStrategy(String, bool),
TopicRecordNameStrategy(String, String),
RecordNameStrategyWithSchema(Box<SuppliedSchema>),
TopicNameStrategyWithSchema(String, bool, Box<SuppliedSchema>),
TopicRecordNameStrategyWithSchema(String, Box<SuppliedSchema>),
}
Expand description
Strategy similar to the one in the Java client. By default schema’s needs to be backwards compatible. Historically the only available strategy was the TopicNameStrategy. This meant in practice that a topic could only have one type, or the restriction on backwards compatibility was to be abandoned. Using either of the two other strategies allows multiple types of schema on on topic, while still being able to keep the restriction on schema’s being backwards compatible. Depending on the strategy, either the topic, whether the value is used as key, the fully qualified name (only for RecordNameStrategy), or the schema needs to be provided.
Variants
RecordNameStrategy(String)
TopicNameStrategy(String, bool)
TopicRecordNameStrategy(String, String)
RecordNameStrategyWithSchema(Box<SuppliedSchema>)
TopicNameStrategyWithSchema(String, bool, Box<SuppliedSchema>)
TopicRecordNameStrategyWithSchema(String, Box<SuppliedSchema>)
Trait Implementations
sourceimpl Clone for SubjectNameStrategy
impl Clone for SubjectNameStrategy
sourcefn clone(&self) -> SubjectNameStrategy
fn clone(&self) -> SubjectNameStrategy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for SubjectNameStrategy
impl Send for SubjectNameStrategy
impl Sync for SubjectNameStrategy
impl Unpin for SubjectNameStrategy
impl UnwindSafe for SubjectNameStrategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more