pub struct NewRun<'a> {
pub dag_id: &'a DagId,
pub dag_version_id: &'a str,
pub kind: RunKind,
pub state: RunState,
pub planned_for: Timestamp,
pub since: Timestamp,
pub triggered_at: Timestamp,
pub triggered_by: &'a str,
pub params: &'a Value,
pub event: Option<&'a RunEvent>,
pub parent_run_id: Option<&'a str>,
pub backfill_id: Option<&'a str>,
}Expand description
A run to create.
Fields§
§dag_id: &'a DagIdThe DAG.
dag_version_id: &'a strThe DAG version it runs.
kind: RunKindWho or what created it.
state: RunStaterunning, or queued to wait for max_active_runs.
planned_for: TimestampThe moment it is for.
since: TimestampThe start of its window.
triggered_at: TimestampWhen it was created.
triggered_by: &'a strscheduler, a user name, or the parent run.
params: &'a ValueIts parameters, as stored JSON (decision 138); {} for a DAG that takes none.
event: Option<&'a RunEvent>The event that started it.
parent_run_id: Option<&'a str>The run whose TriggerDagOperator started it (a chained run), or whose success started
it (a RunOf trigger’s).
backfill_id: Option<&'a str>The backfill it belongs to (a backfill run).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NewRun<'a>
impl<'a> RefUnwindSafe for NewRun<'a>
impl<'a> Send for NewRun<'a>
impl<'a> Sync for NewRun<'a>
impl<'a> Unpin for NewRun<'a>
impl<'a> UnsafeUnpin for NewRun<'a>
impl<'a> UnwindSafe for NewRun<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more