pub struct ExtractInput<'a> {Show 14 fields
pub label: &'static str,
pub words: Span,
pub spec: &'a OperationSpec,
pub workflow: &'a WorkflowBrief,
pub record: RecordContext<'a>,
pub arguments: Vec<&'a ArgumentSpec>,
pub record_choices: BTreeMap<String, Vec<RecordChoice>>,
pub continues: Option<Span>,
pub others: Vec<Span>,
pub kin: Vec<Span>,
pub also: Vec<OperationKey>,
pub transcript: usize,
pub note: Option<String>,
pub occurrence: Option<(usize, usize)>,
}Expand description
One act’s arguments to extract, and their context.
Fields§
§label: &'static strHow the unit is shown.
words: SpanIts words.
spec: &'a OperationSpecThe operation.
workflow: &'a WorkflowBriefIts workflow.
record: RecordContext<'a>The record it applies to.
arguments: Vec<&'a ArgumentSpec>The arguments asked for, in declaration order.
record_choices: BTreeMap<String, Vec<RecordChoice>>The records each record-valued argument may name.
continues: Option<Span>Words of this message the unit continues, such as the request a correction changes.
others: Vec<Span>Words of this message the other parts hold.
kin: Vec<Span>Words of the other parts asking for this same operation: a value the segmentation cut in two runs on into a neighbouring one.
also: Vec<OperationKey>The other operations the same request asks for.
transcript: usizeHow many earlier messages are shown.
note: Option<String>What the whole-turn check found, when this call reads the act again.
occurrence: Option<(usize, usize)>Which of the unit’s acts of this operation to read, and how many it asks for.
Implementations§
Source§impl ExtractInput<'_>
impl ExtractInput<'_>
Sourcepub fn messages(&self, turn: &UnderstandingInput) -> Vec<String>
pub fn messages(&self, turn: &UnderstandingInput) -> Vec<String>
The names a value’s message may take.
Trait Implementations§
Source§impl<'a> Clone for ExtractInput<'a>
impl<'a> Clone for ExtractInput<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExtractInput<'a>
impl<'a> !UnwindSafe for ExtractInput<'a>
impl<'a> Freeze for ExtractInput<'a>
impl<'a> Send for ExtractInput<'a>
impl<'a> Sync for ExtractInput<'a>
impl<'a> Unpin for ExtractInput<'a>
impl<'a> UnsafeUnpin for ExtractInput<'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