pub struct WorkflowInfo {
pub name: &'static str,
pub version: &'static str,
pub signature: &'static str,
pub is_active: bool,
pub is_deprecated: bool,
pub timeout: Duration,
pub http_timeout: Option<Duration>,
pub is_public: bool,
pub required_role: Option<&'static str>,
}Expand description
Workflow metadata.
Fields§
§name: &'static strWorkflow logical name (stable across versions).
version: &'static strUser-facing version identifier (e.g. “2026-03”, “v2”, “signup-fix-1”).
signature: &'static strDerived signature from the persisted contract. Used as the hard runtime safety gate.
is_active: boolWhether this is the active version (new runs start here).
is_deprecated: boolWhether this version is deprecated (kept for draining old runs).
timeout: DurationDefault timeout for the entire workflow.
http_timeout: Option<Duration>Default timeout for outbound HTTP requests made by the workflow.
is_public: boolWhether the workflow is public (no auth required).
required_role: Option<&'static str>Required role for authorization (implies auth required).
Trait Implementations§
Source§impl Clone for WorkflowInfo
impl Clone for WorkflowInfo
Source§fn clone(&self) -> WorkflowInfo
fn clone(&self) -> WorkflowInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkflowInfo
impl Debug for WorkflowInfo
Auto Trait Implementations§
impl Freeze for WorkflowInfo
impl RefUnwindSafe for WorkflowInfo
impl Send for WorkflowInfo
impl Sync for WorkflowInfo
impl Unpin for WorkflowInfo
impl UnsafeUnpin for WorkflowInfo
impl UnwindSafe for WorkflowInfo
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,
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