pub struct DiscoveredStep {
pub name: Option<String>,
pub input: String,
pub reason: Option<String>,
pub priority: u8,
}Expand description
A discovered step parsed from callable output
Fields§
§name: Option<String>Name of the callable to invoke (or use current if None)
input: StringInput to pass to the callable
reason: Option<String>Human-readable reason for discovering this step
priority: u8Priority (higher = execute sooner)
Implementations§
Source§impl DiscoveredStep
impl DiscoveredStep
Sourcepub fn with_reason(self, reason: impl Into<String>) -> Self
pub fn with_reason(self, reason: impl Into<String>) -> Self
Set the reason for discovery
Sourcepub fn with_priority(self, priority: u8) -> Self
pub fn with_priority(self, priority: u8) -> Self
Set priority
Trait Implementations§
Source§impl Clone for DiscoveredStep
impl Clone for DiscoveredStep
Source§fn clone(&self) -> DiscoveredStep
fn clone(&self) -> DiscoveredStep
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 DiscoveredStep
impl Debug for DiscoveredStep
Source§impl<'de> Deserialize<'de> for DiscoveredStep
impl<'de> Deserialize<'de> for DiscoveredStep
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
Auto Trait Implementations§
impl Freeze for DiscoveredStep
impl RefUnwindSafe for DiscoveredStep
impl Send for DiscoveredStep
impl Sync for DiscoveredStep
impl Unpin for DiscoveredStep
impl UnsafeUnpin for DiscoveredStep
impl UnwindSafe for DiscoveredStep
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