pub struct App {
pub date: String,
pub format: String,
pub timezone: Tz,
pub now: Option<DateTime<Tz>>,
}Expand description
Immutable application context passed to process.
Fields§
§date: StringRaw human-readable expression (e.g. "next Friday 10 am").
format: StringEither a chrono-style format string or the name of a preset.
timezone: TzTarget time-zone for output.
now: Option<DateTime<Tz>>Optional “now” (useful for deterministic tests).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more