Trait ArrowTimestampType

Source
pub trait ArrowTimestampType: ArrowTemporalType<Native = i64> {
    const UNIT: TimeUnit;

    // Required method
    fn make_value(naive: NaiveDateTime) -> Option<i64>;
}
Expand description

A timestamp type allows us to create array builders that take a timestamp.

Required Associated Constants§

Source

const UNIT: TimeUnit

The [TimeUnit] of this timestamp.

Required Methods§

Source

fn make_value(naive: NaiveDateTime) -> Option<i64>

Creates a ArrowTimestampType::Native from the provided NaiveDateTime

See [DataType::Timestamp] for more information on timezone handling

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl ArrowTimestampType for TimestampMicrosecondType

Source§

const UNIT: TimeUnit = TimeUnit::Microsecond

Source§

impl ArrowTimestampType for TimestampMillisecondType

Source§

const UNIT: TimeUnit = TimeUnit::Millisecond

Source§

impl ArrowTimestampType for TimestampNanosecondType

Source§

const UNIT: TimeUnit = TimeUnit::Nanosecond

Source§

impl ArrowTimestampType for TimestampSecondType

Source§

const UNIT: TimeUnit = TimeUnit::Second