pub enum SubjectNameStrategy {
TopicName,
RecordName,
TopicRecordName,
}Expand description
Subject name strategies used in registering key and value schemas with the schema registry.
Variants§
TopicName
The subject name is derived directly from the Kafka topic name.
For update formats with both key and value components, use subject names
{topic_name}-key and {topic_name}-value for key and value schemas respectively.
For update formats without a key (e.g., raw), publish value schema
under the subject name {topic_name}.
Only applicable when using Kafka as a transport.
RecordName
The subject name is derived from the fully qualified name of the record.
TopicRecordName
Combines both the topic name and the record name to form the subject.
For update formats with both key and value components, use subject names
{topic_name}-{record_name}-key and {topic_name}-{record_name}-value for
key and value schemas respectively.
For update formats without a key (e.g., raw), publish value schema
under the subject name {topic_name}-{record_name}.
Here, {record_name} is the name of the SQL view tha this connector
is attached to.
Only applicable when using Kafka as a transport.
Trait Implementations§
Source§impl Clone for SubjectNameStrategy
impl Clone for SubjectNameStrategy
Source§fn clone(&self) -> SubjectNameStrategy
fn clone(&self) -> SubjectNameStrategy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubjectNameStrategy
impl Debug for SubjectNameStrategy
Source§impl<'de> Deserialize<'de> for SubjectNameStrategy
impl<'de> Deserialize<'de> for SubjectNameStrategy
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>,
Source§impl Serialize for SubjectNameStrategy
impl Serialize for SubjectNameStrategy
Auto Trait Implementations§
impl Freeze for SubjectNameStrategy
impl RefUnwindSafe for SubjectNameStrategy
impl Send for SubjectNameStrategy
impl Sync for SubjectNameStrategy
impl Unpin for SubjectNameStrategy
impl UnwindSafe for SubjectNameStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)