pub struct DateTimeStats {
pub min_datetime: String,
pub max_datetime: String,
pub duration_days: f64,
pub year_distribution: HashMap<i32, usize>,
pub month_distribution: HashMap<u32, usize>,
pub day_of_week_distribution: HashMap<String, usize>,
pub hour_distribution: Option<HashMap<u32, usize>>,
pub slash_date_order: Option<SlashDateOrder>,
pub largest_gap: Option<DateGap>,
}Expand description
Statistics for date/datetime columns.
Fields§
§min_datetime: String§max_datetime: String§duration_days: f64§year_distribution: HashMap<i32, usize>§month_distribution: HashMap<u32, usize>§day_of_week_distribution: HashMap<String, usize>§hour_distribution: Option<HashMap<u32, usize>>§slash_date_order: Option<SlashDateOrder>How the column’s NN/NN/YYYY values were read (#811).
Decided once per column from its own values, so 01/02/2024 is read
the same way as the 12/31/2024 beside it. None when the column
holds no slash dates, or the report predates the field.
largest_gap: Option<DateGap>The longest stretch between two consecutive distinct days of the column (#1300), over every value read.
A daily file that lost a period from the middle of its range keeps its
newest date and most of its rows, and shows here: the gap grows from 1
to the length of the hole. None when no value parsed as a date, the
column’s dates span more than 10,000 distinct years (the profiler
stops tracking days past that), or the report predates the field.
Implementations§
Source§impl DateTimeStats
impl DateTimeStats
Trait Implementations§
Source§impl Clone for DateTimeStats
impl Clone for DateTimeStats
Source§impl Debug for DateTimeStats
impl Debug for DateTimeStats
Source§impl<'de> Deserialize<'de> for DateTimeStats
impl<'de> Deserialize<'de> for DateTimeStats
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 JsonSchema for DateTimeStats
impl JsonSchema for DateTimeStats
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for DateTimeStats
impl Freeze for DateTimeStats
impl Move for DateTimeStats
impl RefUnwindSafe for DateTimeStats
impl Send for DateTimeStats
impl Sync for DateTimeStats
impl Unpin for DateTimeStats
impl UnsafeUnpin for DateTimeStats
impl UnwindSafe for DateTimeStats
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