pub struct WorkspaceEffectReceipt {
pub invocation: InvocationId,
pub actor: Actor,
pub context: ActionContext,
pub status: EffectReceiptStatus,
pub completed_at: i64,
}Expand description
Append-only, broker-authenticated record of an external side effect. Arguments, output values, produced resource addresses, failure messages, and failure details are deliberately absent from this durable shape.
Fields§
§invocation: InvocationId§actor: Actor§context: ActionContext§status: EffectReceiptStatus§completed_at: i64Implementations§
Source§impl WorkspaceEffectReceipt
impl WorkspaceEffectReceipt
Sourcepub fn redacted(
invocation: InvocationId,
actor: &Actor,
context: ActionContext,
status: EffectReceiptStatus,
completed_at: i64,
) -> Self
pub fn redacted( invocation: InvocationId, actor: &Actor, context: ActionContext, status: EffectReceiptStatus, completed_at: i64, ) -> Self
The bounded public receipt of invocation’s terminal status: every
text is bounded and stripped of control characters, what was done
keeps none of its arguments, and the context keeps only the receipt’s
own facets. Arbitrary application facets and arguments may carry
private values, so none enter this audit.
Sourcepub fn recorded(
invocation: InvocationId,
actor: &Actor,
context: ActionContext,
status: EffectReceiptStatus,
completed_at: i64,
) -> Self
pub fn recorded( invocation: InvocationId, actor: &Actor, context: ActionContext, status: EffectReceiptStatus, completed_at: i64, ) -> Self
Self::redacted, keeping what was done with its arguments: for a
receipt whose arguments are the record itself, such as the grant a
person gave.
Sourcepub fn is_redacted(&self) -> bool
pub fn is_redacted(&self) -> bool
Whether this receipt is exactly what Self::recorded produces for
its own invocation.
Trait Implementations§
Source§impl Clone for WorkspaceEffectReceipt
impl Clone for WorkspaceEffectReceipt
Source§impl Debug for WorkspaceEffectReceipt
impl Debug for WorkspaceEffectReceipt
Source§impl<'de> Deserialize<'de> for WorkspaceEffectReceipt
impl<'de> Deserialize<'de> for WorkspaceEffectReceipt
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 WorkspaceEffectReceipt
Source§impl PartialEq for WorkspaceEffectReceipt
impl PartialEq for WorkspaceEffectReceipt
Source§impl Serialize for WorkspaceEffectReceipt
impl Serialize for WorkspaceEffectReceipt
impl StructuralPartialEq for WorkspaceEffectReceipt
Auto Trait Implementations§
impl Forget for WorkspaceEffectReceipt
impl Freeze for WorkspaceEffectReceipt
impl Move for WorkspaceEffectReceipt
impl RefUnwindSafe for WorkspaceEffectReceipt
impl Send for WorkspaceEffectReceipt
impl Sync for WorkspaceEffectReceipt
impl Unpin for WorkspaceEffectReceipt
impl UnsafeUnpin for WorkspaceEffectReceipt
impl UnwindSafe for WorkspaceEffectReceipt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more