pub struct EffectIntent {
pub effect_id: EffectId,
pub kind: EffectKind,
pub subject_ref: EntityRef,
pub source: SourceRef,
pub destination: Option<DestinationRef>,
pub policy_refs: Vec<PolicyRef>,
pub idempotency_key: Option<IdempotencyKey>,
pub dedupe_key: Option<DedupeKey>,
pub content_refs: Vec<ContentRef>,
pub redacted_summary: String,
}Expand description
Carries the effect intent record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§effect_id: EffectIdStable effect id used for typed lineage, lookup, or dedupe.
kind: EffectKindKind/category for this record, capability, event, or detected resource.
subject_ref: EntityRefTyped subject ref reference. Resolving or executing it is a separate policy-gated step.
source: SourceRefSource label or ref for this item; it is metadata and does not fetch content by itself.
destination: Option<DestinationRef>Destination label or ref for this item; it is metadata and does not deliver content by itself.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
idempotency_key: Option<IdempotencyKey>Idempotency setting or key for deduping retries. Use it to prevent duplicate side effects during replay or repair.
dedupe_key: Option<DedupeKey>Dedupe policy or key for a side-effecting operation. Replay and repair use it to avoid sending or executing the same effect twice.
content_refs: Vec<ContentRef>Content references associated with this record; resolving them is a separate policy-gated step.
redacted_summary: StringRedacted human-readable summary safe for events, telemetry, and logs.
Implementations§
Source§impl EffectIntent
impl EffectIntent
Trait Implementations§
Source§impl Clone for EffectIntent
impl Clone for EffectIntent
Source§fn clone(&self) -> EffectIntent
fn clone(&self) -> EffectIntent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EffectIntent
impl Debug for EffectIntent
Source§impl<'de> Deserialize<'de> for EffectIntent
impl<'de> Deserialize<'de> for EffectIntent
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>,
impl Eq for EffectIntent
Source§impl PartialEq for EffectIntent
impl PartialEq for EffectIntent
Source§fn eq(&self, other: &EffectIntent) -> bool
fn eq(&self, other: &EffectIntent) -> bool
self and other values to be equal, and is used by ==.