pub enum S2StartFrom {
SeqNum(i64),
Timestamp(i64),
TailOffset(i64),
Beginning,
Tail,
}Expand description
Where to start reading from the S2 stream.
JSON schema
{
"description": "Where to start reading from the S2 stream.",
"oneOf": [
{
"type": "object",
"required": [
"SeqNum"
],
"properties": {
"SeqNum": {
"description": "Start from a specific sequence number.",
"type": "integer",
"format": "int64",
"minimum": 0.0
}
}
},
{
"type": "object",
"required": [
"Timestamp"
],
"properties": {
"Timestamp": {
"description": "Start from a specific timestamp (milliseconds since epoch).",
"type": "integer",
"format": "int64",
"minimum": 0.0
}
}
},
{
"type": "object",
"required": [
"TailOffset"
],
"properties": {
"TailOffset": {
"description": "Start from N records before the tail.",
"type": "integer",
"format": "int64",
"minimum": 0.0
}
}
},
{
"description": "Start from the beginning (sequence number 0).",
"type": "string",
"enum": [
"Beginning"
]
},
{
"description": "Start from the tail (new records only).",
"type": "string",
"enum": [
"Tail"
]
}
]
}Variants§
SeqNum(i64)
Timestamp(i64)
TailOffset(i64)
Beginning
Start from the beginning (sequence number 0).
Tail
Start from the tail (new records only).
Trait Implementations§
Source§impl Clone for S2StartFrom
impl Clone for S2StartFrom
Source§impl Debug for S2StartFrom
impl Debug for S2StartFrom
Source§impl<'de> Deserialize<'de> for S2StartFrom
impl<'de> Deserialize<'de> for S2StartFrom
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<&S2StartFrom> for S2StartFrom
impl From<&S2StartFrom> for S2StartFrom
Source§fn from(value: &S2StartFrom) -> Self
fn from(value: &S2StartFrom) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for S2StartFrom
impl RefUnwindSafe for S2StartFrom
impl Send for S2StartFrom
impl Sync for S2StartFrom
impl Unpin for S2StartFrom
impl UnsafeUnpin for S2StartFrom
impl UnwindSafe for S2StartFrom
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more