Enum dataflow_types::Timeline [−][src]
pub enum Timeline {
EpochMilliseconds,
Counter(BringYourOwn),
External(String),
User(String),
}
Expand description
The meaning of the timestamp number produced by data sources. This type is not concerned with the source of the timestamp (like if the data came from a Debezium consistency topic or a CDCv2 stream), instead only what the timestamp number means.
Some variants here have attached data used to differentiate incomparable instantiations. These attached data types should be expanded in the future if we need to tell apart more kinds of sources.
Variants
EpochMilliseconds
EpochMilliseconds means the timestamp is the number of milliseconds since the Unix epoch.
Counter(BringYourOwn)
Tuple Fields
0: BringYourOwn
Counter means the timestamp starts at 1 and is incremented for each transaction. It holds the BYO source so different instantiations can be differentiated.
External(String)
Tuple Fields
0: String
External means the timestamp comes from an external data source and we don’t know what the number means. The attached String is the source’s name, which will result in different sources being incomparable.
User(String)
Tuple Fields
0: String
User means the user has manually specified a timeline. The attached String is specified by the user, allowing them to decide sources that are joinable.
Trait Implementations
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
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Timeline
impl UnwindSafe for Timeline
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more