pub struct RunContext {
pub report: String,
pub set: Option<String>,
pub target: String,
pub profile: String,
pub source_type: String,
pub schedule: Option<String>,
pub date: NaiveDate,
pub now: DateTime<Utc>,
pub scheduled_at: Option<DateTime<Utc>>,
pub calendar: Calendar,
}Expand description
Ambient run.* context.
Fields§
§report: String§set: Option<String>§target: String§profile: String§source_type: StringThe source plugin type (duckdb, databricks, …), for SQL that differs per database.
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.
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