pub struct EventNamed {
pub name: EventName,
pub key: Option<Value>,
}Expand description
An event posted through the API (decision 354), by name and, for a step waiting in a run,
key: EventNamed("payment-completed", key=dag_ctx.params.order_id).
Fields§
§name: EventNameIts name.
key: Option<Value>Its key, a literal or resolved for the run (its params, its own event’s key or ID, an
upstream output): only an event with this key matches. None: any of the name; a
trigger takes none.
Trait Implementations§
Source§impl Clone for EventNamed
impl Clone for EventNamed
Source§fn clone(&self) -> EventNamed
fn clone(&self) -> EventNamed
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 moreSource§impl Debug for EventNamed
impl Debug for EventNamed
Source§impl<'de> Deserialize<'de> for EventNamed
impl<'de> Deserialize<'de> for EventNamed
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 EventNamed
Source§impl JsonSchema for EventNamed
impl JsonSchema for EventNamed
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 PartialEq for EventNamed
impl PartialEq for EventNamed
Source§impl Serialize for EventNamed
impl Serialize for EventNamed
impl StructuralPartialEq for EventNamed
Auto Trait Implementations§
impl Freeze for EventNamed
impl RefUnwindSafe for EventNamed
impl Send for EventNamed
impl Sync for EventNamed
impl Unpin for EventNamed
impl UnsafeUnpin for EventNamed
impl UnwindSafe for EventNamed
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