pub enum KafkaStartFromConfig {
Earliest,
Latest,
Offsets(Vec<i64>),
}
Expand description
Where to begin reading a Kafka topic.
JSON schema
{
"description": "Where to begin reading a Kafka topic.",
"oneOf": [
{
"description": "Start from the beginning of the topic.",
"type": "string",
"enum": [
"earliest"
]
},
{
"description": "Start from the current end of the topic.\n\nThis will only read any data that is added to the topic after the\nconnector initializes.",
"type": "string",
"enum": [
"latest"
]
},
{
"type": "object",
"required": [
"offsets"
],
"properties": {
"offsets": {
"description": "Start from particular offsets in the topic.\n\nThe number of offsets must match the number of partitions in the topic.",
"type": "array",
"items": {
"type": "integer",
"format": "int64"
}
}
}
}
]
}
Variants§
Earliest
Start from the beginning of the topic.
Latest
Start from the current end of the topic.
This will only read any data that is added to the topic after the connector initializes.
Offsets(Vec<i64>)
Trait Implementations§
Source§impl Clone for KafkaStartFromConfig
impl Clone for KafkaStartFromConfig
Source§fn clone(&self) -> KafkaStartFromConfig
fn clone(&self) -> KafkaStartFromConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KafkaStartFromConfig
impl Debug for KafkaStartFromConfig
Source§impl<'de> Deserialize<'de> for KafkaStartFromConfig
impl<'de> Deserialize<'de> for KafkaStartFromConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&KafkaStartFromConfig> for KafkaStartFromConfig
impl From<&KafkaStartFromConfig> for KafkaStartFromConfig
Source§fn from(value: &KafkaStartFromConfig) -> Self
fn from(value: &KafkaStartFromConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KafkaStartFromConfig
impl RefUnwindSafe for KafkaStartFromConfig
impl Send for KafkaStartFromConfig
impl Sync for KafkaStartFromConfig
impl Unpin for KafkaStartFromConfig
impl UnwindSafe for KafkaStartFromConfig
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
Mutably borrows from an owned value. Read more