#[non_exhaustive]pub struct App {
pub date: String,
pub format: String,
pub timezone: TimeZone,
pub now: Option<Zoned>,
}Expand description
Immutable application context passed to process.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.date: StringRaw human-readable expression (e.g. "next Friday 10 am").
format: StringEither a strftime-style format string or the name of a preset.
timezone: TimeZoneTarget time-zone for output.
now: Option<Zoned>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 UnsafeUnpin 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