pub struct EffectRequest {
pub effect_id: EffectId,
pub invocation_id: InvocationId,
pub kind: EffectKind,
pub capability_id: CapabilityId,
pub input: Value,
pub effect_class: EffectClass,
pub idempotency_key: Option<String>,
}Expand description
A runtime request to perform external work.
Fields§
§effect_id: EffectIdUnique effect identity.
invocation_id: InvocationIdStable invocation identity used for correlation and idempotency.
kind: EffectKindOperation category.
capability_id: CapabilityIdCapability required to perform the effect.
input: ValueInput after local validation.
effect_class: EffectClassSide-effect classification at invocation time.
idempotency_key: Option<String>Optional stable key for an idempotent external system.
Trait Implementations§
Source§impl Clone for EffectRequest
impl Clone for EffectRequest
Source§fn clone(&self) -> EffectRequest
fn clone(&self) -> EffectRequest
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 EffectRequest
impl Debug for EffectRequest
Source§impl<'de> Deserialize<'de> for EffectRequest
impl<'de> Deserialize<'de> for EffectRequest
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 PartialEq for EffectRequest
impl PartialEq for EffectRequest
Source§impl Serialize for EffectRequest
impl Serialize for EffectRequest
impl StructuralPartialEq for EffectRequest
Auto Trait Implementations§
impl Freeze for EffectRequest
impl RefUnwindSafe for EffectRequest
impl Send for EffectRequest
impl Sync for EffectRequest
impl Unpin for EffectRequest
impl UnsafeUnpin for EffectRequest
impl UnwindSafe for EffectRequest
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