#[non_exhaustive]pub struct WorkflowRecoveryRequest<'a> {
pub source_run_id: Uuid,
pub organization_id: Option<Uuid>,
pub source_step_id: Option<Uuid>,
pub request_key: &'a str,
pub mode: WorkflowRecoveryMode,
pub reason: &'a str,
}Expand description
Request for an immutable, lineage-linked workflow replay.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source_run_id: UuidExactly scoped terminal source run.
organization_id: Option<Uuid>Organization scope for the source. None selects only a global source,
not every organization.
source_step_id: Option<Uuid>Optional source step that motivated this full replay. This is lineage context and does not reopen the step in place.
request_key: &'a strStable identity for one intentional recovery, non-blank and at most 512 bytes.
mode: WorkflowRecoveryMode§reason: &'a strNon-blank audit reason.
Implementations§
Source§impl<'a> WorkflowRecoveryRequest<'a>
impl<'a> WorkflowRecoveryRequest<'a>
Sourcepub const fn new(
source_run_id: Uuid,
request_key: &'a str,
mode: WorkflowRecoveryMode,
reason: &'a str,
) -> Self
pub const fn new( source_run_id: Uuid, request_key: &'a str, mode: WorkflowRecoveryMode, reason: &'a str, ) -> Self
Creates a recovery request for an exactly global source.
Use Self::organization_id for an organization-owned source and
Self::source_step_id to add optional audit lineage.
Sourcepub const fn organization_id(self, organization_id: Uuid) -> Self
pub const fn organization_id(self, organization_id: Uuid) -> Self
Selects an organization-owned source instead of an exactly global one.
Sourcepub const fn source_step_id(self, source_step_id: Uuid) -> Self
pub const fn source_step_id(self, source_step_id: Uuid) -> Self
Records the source step that motivated recovery without narrowing the full-workflow replay.
Trait Implementations§
Source§impl<'a> Clone for WorkflowRecoveryRequest<'a>
impl<'a> Clone for WorkflowRecoveryRequest<'a>
Source§fn clone(&self) -> WorkflowRecoveryRequest<'a>
fn clone(&self) -> WorkflowRecoveryRequest<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for WorkflowRecoveryRequest<'a>
impl<'a> RefUnwindSafe for WorkflowRecoveryRequest<'a>
impl<'a> Send for WorkflowRecoveryRequest<'a>
impl<'a> Sync for WorkflowRecoveryRequest<'a>
impl<'a> Unpin for WorkflowRecoveryRequest<'a>
impl<'a> UnsafeUnpin for WorkflowRecoveryRequest<'a>
impl<'a> UnwindSafe for WorkflowRecoveryRequest<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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