pub struct TemporalQuery {
pub as_of_valid_time: Option<NaiveDateTime>,
pub as_of_system_time: Option<DateTime<Utc>>,
pub include_history: bool,
}Expand description
Temporal query parameters for point-in-time queries.
Fields§
§as_of_valid_time: Option<NaiveDateTime>Query as of this business time (None = current)
as_of_system_time: Option<DateTime<Utc>>Query as of this system time (None = current)
include_history: boolInclude superseded versions
Implementations§
Source§impl TemporalQuery
impl TemporalQuery
Sourcepub fn as_of_valid(time: NaiveDateTime) -> Self
pub fn as_of_valid(time: NaiveDateTime) -> Self
Query as of a specific business time.
Sourcepub fn as_of_system(time: DateTime<Utc>) -> Self
pub fn as_of_system(time: DateTime<Utc>) -> Self
Query as of a specific system time.
Sourcepub fn with_history() -> Self
pub fn with_history() -> Self
Query with full history.
Trait Implementations§
Source§impl Clone for TemporalQuery
impl Clone for TemporalQuery
Source§fn clone(&self) -> TemporalQuery
fn clone(&self) -> TemporalQuery
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 TemporalQuery
impl Debug for TemporalQuery
Source§impl Default for TemporalQuery
impl Default for TemporalQuery
Source§fn default() -> TemporalQuery
fn default() -> TemporalQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TemporalQuery
impl<'de> Deserialize<'de> for TemporalQuery
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
Auto Trait Implementations§
impl Freeze for TemporalQuery
impl RefUnwindSafe for TemporalQuery
impl Send for TemporalQuery
impl Sync for TemporalQuery
impl Unpin for TemporalQuery
impl UnwindSafe for TemporalQuery
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