pub struct RouteInput<'a> {
pub label: &'static str,
pub words: Span,
pub workflows: Vec<&'a WorkflowBrief>,
pub note: Option<String>,
pub others: Vec<Span>,
}Expand description
One unit to route and what is on offer to it.
Fields§
§label: &'static strRequest, Correction or Cancel, as the unit is shown.
words: SpanIts words.
workflows: Vec<&'a WorkflowBrief>The workflows whose operations are on offer.
note: Option<String>What a second route is told of the first reading, or nothing.
others: Vec<Span>The words of the message’s other parts, each routed on its own.
Implementations§
Source§impl RouteInput<'_>
impl RouteInput<'_>
Sourcepub fn offered(&self) -> Vec<&OperationSpec>
pub fn offered(&self) -> Vec<&OperationSpec>
The operations on offer: proposable ones, each once.
Sourcepub fn startable(&self) -> Vec<&WorkflowKey>
pub fn startable(&self) -> Vec<&WorkflowKey>
The workflows a new case may be started of, save those offering an operation that opens one: that operation carries arguments, a bare start does not.
Trait Implementations§
Source§impl<'a> Clone for RouteInput<'a>
impl<'a> Clone for RouteInput<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RouteInput<'a>
impl<'a> !UnwindSafe for RouteInput<'a>
impl<'a> Freeze for RouteInput<'a>
impl<'a> Send for RouteInput<'a>
impl<'a> Sync for RouteInput<'a>
impl<'a> Unpin for RouteInput<'a>
impl<'a> UnsafeUnpin for RouteInput<'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