pub struct RunContext {
pub report: String,
pub set: Option<String>,
pub target: String,
pub schedule: Option<String>,
pub date: NaiveDate,
pub now: DateTime<Utc>,
pub scheduled_at: Option<DateTime<Utc>>,
pub calendar: Calendar,
pub locale: Locale,
}Expand description
Ambient run.* context.
Fields§
§report: String§set: Option<String>§target: StringThe run’s target (environment): run.target and target.name.
schedule: Option<String>The schedule’s name under dre run --schedule, else None.
date: NaiveDate§now: DateTime<Utc>When the run started, or the instant it was scheduled for: run.now.
scheduled_at: Option<DateTime<Utc>>DRE_RUN_AT: run.scheduled_at.
calendar: CalendarThe run’s timezone and week settings.
locale: LocaleThe Binding’s locale:, for the number filters.
Trait Implementations§
Source§impl Clone for RunContext
impl Clone for RunContext
Auto Trait Implementations§
impl Freeze for RunContext
impl RefUnwindSafe for RunContext
impl Send for RunContext
impl Sync for RunContext
impl Unpin for RunContext
impl UnsafeUnpin for RunContext
impl UnwindSafe for RunContext
Blanket Implementations§
impl<T> Allocation for T
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