Struct Extract
pub struct Extract { /* private fields */ }Expand description
A declarative extraction record: typed fields filled by recognizers and/or async resolvers.
Implementations§
§impl Extract
impl Extract
pub fn record(name: impl Into<String>) -> ExtractBuilder
pub fn record(name: impl Into<String>) -> ExtractBuilder
Start building a record with the given extractor name.
pub fn into_extractor(self) -> Arc<dyn TurnExtractor>
pub fn into_extractor(self) -> Arc<dyn TurnExtractor>
Compile into a TurnExtractor for registration.
pub fn field_state_keys(&self) -> Vec<(String, String)>
pub fn field_state_keys(&self) -> Vec<(String, String)>
The (field name, state key) pairs this record promotes. Callers that run
the extractor and promote the returned record into State themselves (e.g.
the simulation harness) use this to map each field to its state key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Extract
impl !RefUnwindSafe for Extract
impl Send for Extract
impl Sync for Extract
impl Unpin for Extract
impl !UnwindSafe for Extract
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