pub struct ChoiceView<'a> {
pub choice: &'a str,
pub probabilities: &'a IndexMap<String, f64>,
pub confidence: f64,
}Expand description
Borrowed view of a Choice answer.
Fields§
§choice: &'a strSelected option.
probabilities: &'a IndexMap<String, f64>Probability of each option.
confidence: f64Model confidence.
Trait Implementations§
Source§impl<'a> Clone for ChoiceView<'a>
impl<'a> Clone for ChoiceView<'a>
Source§fn clone(&self) -> ChoiceView<'a>
fn clone(&self) -> ChoiceView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ChoiceView<'a>
Source§impl<'a> Debug for ChoiceView<'a>
impl<'a> Debug for ChoiceView<'a>
Source§impl<'a> PartialEq for ChoiceView<'a>
impl<'a> PartialEq for ChoiceView<'a>
impl<'a> StructuralPartialEq for ChoiceView<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChoiceView<'a>
impl<'a> RefUnwindSafe for ChoiceView<'a>
impl<'a> Send for ChoiceView<'a>
impl<'a> Sync for ChoiceView<'a>
impl<'a> Unpin for ChoiceView<'a>
impl<'a> UnsafeUnpin for ChoiceView<'a>
impl<'a> UnwindSafe for ChoiceView<'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