pub struct TransitionRequest {
pub id: EffectId,
pub expected_version: u64,
pub lease: Option<Lease>,
pub transition: Transition,
pub now: SystemTime,
pub output: Option<Value>,
pub error: Option<ErrorRecord>,
pub next_attempt_at: Option<SystemTime>,
pub actor: Option<String>,
pub payload: Option<Value>,
}Expand description
A request to move an effect through one Transition.
Fields§
§id: EffectIdThe effect to change.
expected_version: u64The record version the caller last saw; the change fails with
StoreError::VersionConflict if it moved on.
lease: Option<Lease>The caller’s lease. None is only accepted while nobody holds a live
lease, e.g. for an operator resolving an effect.
transition: TransitionThe transition to apply.
now: SystemTimeThe time of the change.
output: Option<Value>The action’s result, stored when present.
error: Option<ErrorRecord>A failure to record as the effect’s last error.
next_attempt_at: Option<SystemTime>For Transition::ScheduleRetry and Transition::ResolvedRetry:
when the next attempt may start. Defaults to now.
actor: Option<String>Who made the change, for the audit event.
payload: Option<Value>Extra audit detail, already redacted.
Implementations§
Source§impl TransitionRequest
impl TransitionRequest
Sourcepub fn new(
record: &EffectRecord,
lease: Option<&Lease>,
transition: Transition,
now: SystemTime,
) -> Self
pub fn new( record: &EffectRecord, lease: Option<&Lease>, transition: Transition, now: SystemTime, ) -> Self
A transition with no output, error, actor or payload.
Trait Implementations§
Source§impl Clone for TransitionRequest
impl Clone for TransitionRequest
Source§impl Debug for TransitionRequest
impl Debug for TransitionRequest
Source§impl PartialEq for TransitionRequest
impl PartialEq for TransitionRequest
impl StructuralPartialEq for TransitionRequest
Auto Trait Implementations§
impl Freeze for TransitionRequest
impl RefUnwindSafe for TransitionRequest
impl Send for TransitionRequest
impl Sync for TransitionRequest
impl Unpin for TransitionRequest
impl UnsafeUnpin for TransitionRequest
impl UnwindSafe for TransitionRequest
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