pub struct IntentFrame { /* private fields */ }Expand description
A frame-based intent extractor that uses separate tags for input wrapping and extraction.
Implementations§
Trait Implementations§
Source§impl<T> IntentExtractor<T> for IntentFramewhere
T: FromStr,
impl<T> IntentExtractor<T> for IntentFramewhere
T: FromStr,
Source§fn extract_intent(&self, text: &str) -> Result<T, IntentError>
fn extract_intent(&self, text: &str) -> Result<T, IntentError>
Extracts and parses an intent from the given text.
Auto Trait Implementations§
impl Freeze for IntentFrame
impl RefUnwindSafe for IntentFrame
impl Send for IntentFrame
impl Sync for IntentFrame
impl Unpin for IntentFrame
impl UnwindSafe for IntentFrame
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