#[non_exhaustive]pub struct EvaluatedAnnotationExplanation {
pub explanation_type: String,
pub explanation: Option<Explanation>,
/* private fields */
}Expand description
Explanation result of the prediction produced by the Model.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.explanation_type: StringExplanation type.
For AutoML Image Classification models, possible values are:
image-integrated-gradientsimage-xrai
explanation: Option<Explanation>Explanation attribution response details.
Implementations§
Source§impl EvaluatedAnnotationExplanation
impl EvaluatedAnnotationExplanation
pub fn new() -> Self
Sourcepub fn set_explanation_type<T: Into<String>>(self, v: T) -> Self
pub fn set_explanation_type<T: Into<String>>(self, v: T) -> Self
Sets the value of explanation_type.
Sourcepub fn set_explanation<T: Into<Option<Explanation>>>(self, v: T) -> Self
pub fn set_explanation<T: Into<Option<Explanation>>>(self, v: T) -> Self
Sets the value of explanation.
Trait Implementations§
Source§impl Clone for EvaluatedAnnotationExplanation
impl Clone for EvaluatedAnnotationExplanation
Source§fn clone(&self) -> EvaluatedAnnotationExplanation
fn clone(&self) -> EvaluatedAnnotationExplanation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for EvaluatedAnnotationExplanation
impl Default for EvaluatedAnnotationExplanation
Source§fn default() -> EvaluatedAnnotationExplanation
fn default() -> EvaluatedAnnotationExplanation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EvaluatedAnnotationExplanation
impl<'de> Deserialize<'de> for EvaluatedAnnotationExplanation
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 EvaluatedAnnotationExplanation
impl PartialEq for EvaluatedAnnotationExplanation
Source§fn eq(&self, other: &EvaluatedAnnotationExplanation) -> bool
fn eq(&self, other: &EvaluatedAnnotationExplanation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EvaluatedAnnotationExplanation
Auto Trait Implementations§
impl Freeze for EvaluatedAnnotationExplanation
impl RefUnwindSafe for EvaluatedAnnotationExplanation
impl Send for EvaluatedAnnotationExplanation
impl Sync for EvaluatedAnnotationExplanation
impl Unpin for EvaluatedAnnotationExplanation
impl UnwindSafe for EvaluatedAnnotationExplanation
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