# src/types.rs
- LogicalTypeID · enum · L8-L46 — pub enum LogicalTypeID
- PhysicalTypeID · enum · L51-L71 — pub enum PhysicalTypeID
- InternalID · struct · L75-L78 — pub struct InternalID
- Date · struct · L82-L82 — pub struct Date(pub i32);
- Timestamp · struct · L86-L86 — pub struct Timestamp(pub i64);
- TimestampTZ · struct · L90-L90 — pub struct TimestampTZ(pub i64);
- Interval · struct · L94-L98 — pub struct Interval
- Value · enum · L102-L133 — pub enum Value
- from · function · L139-L141 — fn from(v: bool) -> Self
- from · function · L145-L147 — fn from(v: i64) -> Self
- from · function · L151-L153 — fn from(v: i32) -> Self
- from · function · L157-L159 — fn from(v: i16) -> Self
- from · function · L163-L165 — fn from(v: i8) -> Self
- from · function · L169-L171 — fn from(v: u64) -> Self
- from · function · L175-L177 — fn from(v: u32) -> Self
- from · function · L181-L183 — fn from(v: u16) -> Self
- from · function · L187-L189 — fn from(v: u8) -> Self
- from · function · L193-L195 — fn from(v: f64) -> Self
- from · function · L199-L201 — fn from(v: f32) -> Self
- from · function · L205-L207 — fn from(v: String) -> Self
- from · function · L211-L213 — fn from(v: &str) -> Self
- from · function · L217-L219 — fn from(v: Date) -> Self
- from · function · L223-L225 — fn from(v: Timestamp) -> Self
- from · function · L229-L231 — fn from(v: Interval) -> Self
- from · function · L235-L237 — fn from(v: InternalID) -> Self
- from · function · L241-L243 — fn from(v: u128) -> Self
- from · function · L247-L249 — fn from(v: serde_json::Value) -> Self
- logical_type · function · L254-L287 — pub fn logical_type(&self) -> LogicalTypeID
- physical_type · function · L291-L293 — pub fn physical_type(&self) -> PhysicalTypeID
- physical_type_from_logical · function · L298-L329 — pub const fn physical_type_from_logical(logical: LogicalTypeID) -> PhysicalTypeID
- from_days_since_epoch · function · L334-L336 — pub fn from_days_since_epoch(days: i32) -> Self
- days_since_epoch · function · L340-L342 — pub fn days_since_epoch(&self) -> i32
- from_micros_since_epoch · function · L348-L350 — pub fn from_micros_since_epoch(micros: i64) -> Self
- micros_since_epoch · function · L354-L356 — pub fn micros_since_epoch(&self) -> i64
- new · function · L360-L362 — pub fn new(months: i32, days: i32, micros: i64) -> Self
- extract_f64_list · function · L370-L389 — pub fn extract_f64_list(val: &Value) -> Result<Vec<f64>, String>
- pk_value_to_string · function · L397-L416 — pub fn pk_value_to_string(v: &Value) -> String
- value_to_csv_string · function · L420-L425 — pub fn value_to_csv_string(v: &Value) -> String
- tests · module · L428-L557 — mod tests
- test_value_from_primitives · function · L432-L439 — fn test_value_from_primitives()
- test_value_logical_type · function · L442-L448 — fn test_value_logical_type()
- test_extract_f64_list · function · L451-L465 — fn test_extract_f64_list()
- test_physical_type_from_logical · function · L468-L477 — fn test_physical_type_from_logical()
- test_date_roundtrip · function · L480-L483 — fn test_date_roundtrip()
- test_timestamp_roundtrip · function · L486-L489 — fn test_timestamp_roundtrip()
- test_internal_id · function · L492-L499 — fn test_internal_id()
- test_value_from_list · function · L502-L505 — fn test_value_from_list()
- test_value_physical_type · function · L508-L515 — fn test_value_physical_type()
- test_pk_value_to_string_canonical_keys · function · L518-L547 — fn test_pk_value_to_string_canonical_keys()
- test_value_to_csv_string_null_is_empty_cell · function · L550-L556 — fn test_value_to_csv_string_null_is_empty_cell()