pub struct TimeTarget {
pub event_time: Option<DateTime<Utc>>,
pub publish_time: Option<DateTime<Utc>>,
}Expand description
A target publish or event time. Can be used for seeking to or retrieving the corresponding cursor.
This type is not used in any activity, and only used as part of another schema.
Fields§
§event_time: Option<DateTime<Utc>>Request the cursor of the first message with event time greater than or equal to event_time. If messages are missing an event time, the publish time is used as a fallback. As event times are user supplied, subsequent messages may have event times less than event_time and should be filtered by the client, if necessary.
publish_time: Option<DateTime<Utc>>Request the cursor of the first message with publish time greater than or equal to publish_time. All messages thereafter are guaranteed to have publish times >= publish_time.
Trait Implementations§
Source§impl Clone for TimeTarget
impl Clone for TimeTarget
Source§fn clone(&self) -> TimeTarget
fn clone(&self) -> TimeTarget
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 TimeTarget
impl Debug for TimeTarget
Source§impl Default for TimeTarget
impl Default for TimeTarget
Source§fn default() -> TimeTarget
fn default() -> TimeTarget
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeTarget
impl<'de> Deserialize<'de> for TimeTarget
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 Serialize for TimeTarget
impl Serialize for TimeTarget
impl Part for TimeTarget
Auto Trait Implementations§
impl Freeze for TimeTarget
impl RefUnwindSafe for TimeTarget
impl Send for TimeTarget
impl Sync for TimeTarget
impl Unpin for TimeTarget
impl UnwindSafe for TimeTarget
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