pub enum KafkaStartFromConfig {
Earliest,
Latest,
Offsets(Vec<i64>),
Timestamp(i64),
}Expand description
Where to begin reading a Kafka topic.
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>)
Start from particular offsets in the topic.
The number of offsets must match the number of partitions in the topic.
Timestamp(i64)
Start from a particular timestamp in the topic.
Kafka timestamps are in milliseconds since the epoch.
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 (const: unstable) · 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 Default for KafkaStartFromConfig
impl Default for KafkaStartFromConfig
Source§fn default() -> KafkaStartFromConfig
fn default() -> KafkaStartFromConfig
Returns the “default value” for a type. Read more
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 PartialEq for KafkaStartFromConfig
impl PartialEq for KafkaStartFromConfig
Source§fn eq(&self, other: &KafkaStartFromConfig) -> bool
fn eq(&self, other: &KafkaStartFromConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KafkaStartFromConfig
impl Serialize for KafkaStartFromConfig
Source§impl<'__s> ToSchema<'__s> for KafkaStartFromConfig
impl<'__s> ToSchema<'__s> for KafkaStartFromConfig
impl Eq for KafkaStartFromConfig
impl StructuralPartialEq for KafkaStartFromConfig
Auto Trait Implementations§
impl Freeze for KafkaStartFromConfig
impl RefUnwindSafe for KafkaStartFromConfig
impl Send for KafkaStartFromConfig
impl Sync for KafkaStartFromConfig
impl Unpin for KafkaStartFromConfig
impl UnsafeUnpin 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
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.