risingwave_common::field_generator

Trait ChronoFieldInner

source
pub trait ChronoFieldInner:
    Debug
    + Copy
    + Scalar {
    // Required methods
    fn from_now() -> Self;
    fn from_base(base: DateTime<FixedOffset>) -> Self;
    fn minus(&self, duration: Duration) -> Self;
    fn to_json(&self) -> Value;
}

Required Methods§

source

fn from_now() -> Self

source

fn from_base(base: DateTime<FixedOffset>) -> Self

source

fn minus(&self, duration: Duration) -> Self

source

fn to_json(&self) -> Value

Object Safety§

This trait is not object safe.

Implementors§