pub struct ClassificationOutcome {
pub model: String,
pub answers: BTreeMap<String, ClassificationAnswer>,
pub usage: ClassificationUsage,
}Expand description
The result of one evaluation.
Fields§
§model: StringThe model that answered, as the service resolved it.
answers: BTreeMap<String, ClassificationAnswer>One answer per question id.
usage: ClassificationUsageToken usage for the request.
Implementations§
Source§impl ClassificationOutcome
impl ClassificationOutcome
Sourcepub fn get(&self, id: &str) -> Option<&ClassificationAnswer>
pub fn get(&self, id: &str) -> Option<&ClassificationAnswer>
The answer under id, if present.
Trait Implementations§
Source§impl Clone for ClassificationOutcome
impl Clone for ClassificationOutcome
Source§fn clone(&self) -> ClassificationOutcome
fn clone(&self) -> ClassificationOutcome
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 moreSource§impl Debug for ClassificationOutcome
impl Debug for ClassificationOutcome
Source§impl Default for ClassificationOutcome
impl Default for ClassificationOutcome
Source§fn default() -> ClassificationOutcome
fn default() -> ClassificationOutcome
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClassificationOutcome
impl PartialEq for ClassificationOutcome
impl StructuralPartialEq for ClassificationOutcome
Auto Trait Implementations§
impl Freeze for ClassificationOutcome
impl RefUnwindSafe for ClassificationOutcome
impl Send for ClassificationOutcome
impl Sync for ClassificationOutcome
impl Unpin for ClassificationOutcome
impl UnsafeUnpin for ClassificationOutcome
impl UnwindSafe for ClassificationOutcome
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