Skip to main content

EcashTime

Trait EcashTime 

Source
pub trait EcashTime {
    // Required method
    fn ecash_datetime(&self) -> OffsetDateTime;

    // Provided methods
    fn ecash_unix_timestamp(&self) -> u32 { ... }
    fn ecash_date(&self) -> Date { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EcashTime for Date

Source§

impl EcashTime for OffsetDateTime

Source§

impl EcashTime for PrimitiveDateTime

Implementors§