pub struct ChoiceResult {
pub selected: String,
pub confidence: f32,
pub distribution: Vec<(String, f32)>,
}Expand description
Result of evaluating a Choice primitive.
Fields§
§selected: String§confidence: f32§distribution: Vec<(String, f32)>Implementations§
Trait Implementations§
Source§impl Clone for ChoiceResult
impl Clone for ChoiceResult
Auto Trait Implementations§
impl Freeze for ChoiceResult
impl RefUnwindSafe for ChoiceResult
impl Send for ChoiceResult
impl Sync for ChoiceResult
impl Unpin for ChoiceResult
impl UnsafeUnpin for ChoiceResult
impl UnwindSafe for ChoiceResult
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