pub enum TemporalValidationType {
BeforeAfter {
before_column: String,
after_column: String,
allow_equal: bool,
},
BusinessHours {
timestamp_column: String,
start_time: String,
end_time: String,
weekdays_only: bool,
timezone: Option<String>,
},
DateRange {
timestamp_column: String,
min_date: Option<String>,
max_date: Option<String>,
},
MaxTimeGap {
timestamp_column: String,
group_by_column: Option<String>,
max_gap_seconds: i64,
},
EventSequence {
event_column: String,
timestamp_column: String,
expected_sequence: Vec<String>,
},
}Expand description
Type of temporal validation to perform
Variants§
BeforeAfter
Validate that one column comes before another
BusinessHours
Validate that timestamps fall within business hours
Fields
DateRange
Validate that timestamps are within a specific date range
MaxTimeGap
Validate maximum time gap between sequential events
EventSequence
Validate that events follow a specific sequence
Trait Implementations§
Source§impl Clone for TemporalValidationType
impl Clone for TemporalValidationType
Source§fn clone(&self) -> TemporalValidationType
fn clone(&self) -> TemporalValidationType
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 TemporalValidationType
impl Debug for TemporalValidationType
Source§impl<'de> Deserialize<'de> for TemporalValidationType
impl<'de> Deserialize<'de> for TemporalValidationType
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 TemporalValidationType
impl RefUnwindSafe for TemporalValidationType
impl Send for TemporalValidationType
impl Sync for TemporalValidationType
impl Unpin for TemporalValidationType
impl UnwindSafe for TemporalValidationType
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,
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