pub struct WorkflowPlan {
pub name: String,
pub description: String,
pub phases: Vec<String>,
pub estimated_agents: Option<u32>,
pub source: Arc<str>,
}Expand description
What the user is shown before a run starts.
Fields§
§name: String§description: String§phases: Vec<String>§estimated_agents: Option<u32>None when the agent count depends on data the run has not fetched yet.
source: Arc<str>Implementations§
Source§impl WorkflowPlan
impl WorkflowPlan
pub fn from_script(script: &Script) -> WorkflowPlan
Sourcepub fn agent_estimate(&self) -> String
pub fn agent_estimate(&self) -> String
The agent count as shown to the user.
A count is only stated when the script fixes it. Otherwise this says so, because a number in an approval prompt has to be one the user can rely on.
Trait Implementations§
Source§impl Clone for WorkflowPlan
impl Clone for WorkflowPlan
Auto Trait Implementations§
impl Freeze for WorkflowPlan
impl RefUnwindSafe for WorkflowPlan
impl Send for WorkflowPlan
impl Sync for WorkflowPlan
impl Unpin for WorkflowPlan
impl UnsafeUnpin for WorkflowPlan
impl UnwindSafe for WorkflowPlan
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 moreCreates a shared type from an unshared type.