Struct rusoto_kinesis::StartingPosition
source · [−]pub struct StartingPosition {
pub sequence_number: Option<String>,
pub timestamp: Option<f64>,
pub type_: String,
}
Expand description
Fields
sequence_number: Option<String>
The sequence number of the data record in the shard from which to start streaming. To specify a sequence number, set StartingPosition
to AT_SEQUENCE_NUMBER
or AFTER_SEQUENCE_NUMBER
.
timestamp: Option<f64>
The time stamp of the data record from which to start reading. To specify a time stamp, set StartingPosition
to Type AT_TIMESTAMP
. A time stamp is the Unix epoch date with precision in milliseconds. For example, 2016-04-04T19:58:46.480-00:00
or 1459799926.480
. If a record with this exact time stamp does not exist, records will be streamed from the next (later) record. If the time stamp is older than the current trim horizon, records will be streamed from the oldest untrimmed data record (TRIM_HORIZON
).
type_: String
You can set the starting position to one of the following values:
AT_SEQUENCE_NUMBER
: Start streaming from the position denoted by the sequence number specified in the SequenceNumber
field.
AFTER_SEQUENCE_NUMBER
: Start streaming right after the position denoted by the sequence number specified in the SequenceNumber
field.
AT_TIMESTAMP
: Start streaming from the position denoted by the time stamp specified in the Timestamp
field.
TRIM_HORIZON
: Start streaming at the last untrimmed record in the shard, which is the oldest data record in the shard.
LATEST
: Start streaming just after the most recent record in the shard, so that you always read the most recent data in the shard.
Trait Implementations
sourceimpl Clone for StartingPosition
impl Clone for StartingPosition
sourcefn clone(&self) -> StartingPosition
fn clone(&self) -> StartingPosition
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 more
sourceimpl Debug for StartingPosition
impl Debug for StartingPosition
sourceimpl Default for StartingPosition
impl Default for StartingPosition
sourcefn default() -> StartingPosition
fn default() -> StartingPosition
Returns the “default value” for a type. Read more
sourceimpl PartialEq<StartingPosition> for StartingPosition
impl PartialEq<StartingPosition> for StartingPosition
sourcefn eq(&self, other: &StartingPosition) -> bool
fn eq(&self, other: &StartingPosition) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &StartingPosition) -> bool
fn ne(&self, other: &StartingPosition) -> bool
This method tests for !=
.
sourceimpl Serialize for StartingPosition
impl Serialize for StartingPosition
impl StructuralPartialEq for StartingPosition
Auto Trait Implementations
impl RefUnwindSafe for StartingPosition
impl Send for StartingPosition
impl Sync for StartingPosition
impl Unpin for StartingPosition
impl UnwindSafe for StartingPosition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more