pub trait Scaffolding {
    // Provided methods
    fn hello(&self) { ... }
    fn id() -> String { ... }
    fn add_days(dtm: i64, days: i64) -> i64 { ... }
    fn add_months(dtm: i64, months: u32) -> i64 { ... }
    fn add_years(dtm: i64, years: u32) -> i64 { ... }
    fn never() -> i64 { ... }
    fn now() -> i64 { ... }
}

Provided Methods§

source

fn hello(&self)

source

fn id() -> String

generates a uuid v4 value

source

fn add_days(dtm: i64, days: i64) -> i64

adds x days to the timestamp

source

fn add_months(dtm: i64, months: u32) -> i64

adds x years to the timestamp

source

fn add_years(dtm: i64, years: u32) -> i64

adds x years to the timestamp

source

fn never() -> i64

provided the default unix epoch time (UTC) as seconds for the timestamp: 9999-12-31 23:59:59

source

fn now() -> i64

generate the current unix epoch time (UTC) as seconds

Object Safety§

This trait is not object safe.

Implementors§