pub enum SegmentedUnit {
Request {
words: Span,
workflow: String,
},
Question {
words: Span,
workflow: String,
basis: AnswerBasis,
continues_previous: bool,
},
Constraint {
words: Span,
constraint: ConstraintKind,
},
Correction {
words: Span,
workflow: String,
corrects: Option<usize>,
},
Cancel {
words: Span,
workflow: String,
cancels: Option<usize>,
},
CardAnswer {
words: Span,
option: String,
},
Dispute {
words: Span,
receipt: String,
},
ProvidesValue {
words: Span,
},
Chitchat {
words: Span,
},
}Expand description
One unit as the model found it.
Variants§
Request
Question
Constraint
Correction
Fields
Cancel
Fields
CardAnswer
Dispute
ProvidesValue
Chitchat
Implementations§
Source§impl SegmentedUnit
impl SegmentedUnit
Trait Implementations§
Source§impl Clone for SegmentedUnit
impl Clone for SegmentedUnit
Source§impl Debug for SegmentedUnit
impl Debug for SegmentedUnit
Source§impl<'de> Deserialize<'de> for SegmentedUnit
impl<'de> Deserialize<'de> for SegmentedUnit
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
Source§impl PartialEq for SegmentedUnit
impl PartialEq for SegmentedUnit
Source§impl Serialize for SegmentedUnit
impl Serialize for SegmentedUnit
impl StructuralPartialEq for SegmentedUnit
Auto Trait Implementations§
impl Freeze for SegmentedUnit
impl RefUnwindSafe for SegmentedUnit
impl Send for SegmentedUnit
impl Sync for SegmentedUnit
impl Unpin for SegmentedUnit
impl UnsafeUnpin for SegmentedUnit
impl UnwindSafe for SegmentedUnit
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