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>,
}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.
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 Freeze 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