pub enum Placeholder {
Show 13 variants
Event,
Dag,
Run,
PlannedFor,
State,
Text,
Link,
FailedTasks,
Task,
Attempt,
Time,
Zone,
Data,
}Expand description
The values a body can use (decision 417).
Variants§
Event
The event’s name (RUN_FAILED; MESSAGE for a task’s own send).
Dag
The DAG’s ID.
Run
The run’s ID.
PlannedFor
The run’s planned time (UTC, RFC 3339), or null.
State
The run’s or the task’s state.
Text
schedr’s one-line summary; a task’s own send: its text.
Link
The link to the run in the UI ([notifications] ui_url), or null.
FailedTasks
The failed tasks: a list of {task, error}.
Task
The task’s ID, for task events and send; null otherwise.
Attempt
The attempt’s number, for task events and send; null otherwise.
Time
When the event happened (UTC, RFC 3339).
Zone
The DAG’s time zone.
Data
A task’s own send: its data; null in event notifications.
Implementations§
Trait Implementations§
Source§impl Clone for Placeholder
impl Clone for Placeholder
Source§fn clone(&self) -> Placeholder
fn clone(&self) -> Placeholder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Placeholder
Source§impl Debug for Placeholder
impl Debug for Placeholder
Source§impl<'de> Deserialize<'de> for Placeholder
impl<'de> Deserialize<'de> for Placeholder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Placeholder
Source§impl Hash for Placeholder
impl Hash for Placeholder
Source§impl JsonSchema for Placeholder
impl JsonSchema for Placeholder
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for Placeholder
impl Ord for Placeholder
Source§fn cmp(&self, other: &Placeholder) -> Ordering
fn cmp(&self, other: &Placeholder) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Placeholder
impl PartialEq for Placeholder
Source§impl PartialOrd for Placeholder
impl PartialOrd for Placeholder
Source§impl Serialize for Placeholder
impl Serialize for Placeholder
impl StructuralPartialEq for Placeholder
Auto Trait Implementations§
impl Freeze for Placeholder
impl RefUnwindSafe for Placeholder
impl Send for Placeholder
impl Sync for Placeholder
impl Unpin for Placeholder
impl UnsafeUnpin for Placeholder
impl UnwindSafe for Placeholder
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