#[non_exhaustive]pub enum OperationEventPayload {
Requested {
parameters_digest: String,
metadata: Value,
},
Planned(OperationPlan),
Authorized {
authorization_id: AuthorizationId,
confirmation_ref: Option<String>,
},
Started {
topology_revision: Option<String>,
},
Progressed(ProgressEvent),
Succeeded(OperationResult),
Failed(OperationResult),
Cancelled(OperationResult),
Verified(VerificationResult),
}Expand description
Lifecycle-specific operation event payload.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Requested
Request metadata safe to persist before target resolution.
Fields
Planned(OperationPlan)
Immutable authorization-relevant plan.
Authorized
Opaque reference to product-issued authorization evidence.
Fields
Authorization identity.
Started
Concrete target at the point mutation may begin.
Progressed(ProgressEvent)
One bounded progress update.
Succeeded(OperationResult)
Successful terminal execution result.
Failed(OperationResult)
Failed terminal execution result.
Cancelled(OperationResult)
Cancelled terminal execution result.
Verified(VerificationResult)
Independent runtime verification.
Implementations§
Source§impl OperationEventPayload
impl OperationEventPayload
Sourcepub const fn event_type(&self) -> OperationEventType
pub const fn event_type(&self) -> OperationEventType
Returns the event type corresponding to this payload.
Trait Implementations§
Source§impl Clone for OperationEventPayload
impl Clone for OperationEventPayload
Source§fn clone(&self) -> OperationEventPayload
fn clone(&self) -> OperationEventPayload
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 OperationEventPayload
impl Debug for OperationEventPayload
Source§impl<'de> Deserialize<'de> for OperationEventPayload
impl<'de> Deserialize<'de> for OperationEventPayload
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
Source§impl JsonSchema for OperationEventPayload
impl JsonSchema for OperationEventPayload
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 OperationEventPayload
impl PartialEq for OperationEventPayload
Source§fn eq(&self, other: &OperationEventPayload) -> bool
fn eq(&self, other: &OperationEventPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OperationEventPayload
impl Serialize for OperationEventPayload
impl StructuralPartialEq for OperationEventPayload
Auto Trait Implementations§
impl Freeze for OperationEventPayload
impl RefUnwindSafe for OperationEventPayload
impl Send for OperationEventPayload
impl Sync for OperationEventPayload
impl Unpin for OperationEventPayload
impl UnsafeUnpin for OperationEventPayload
impl UnwindSafe for OperationEventPayload
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