#[non_exhaustive]pub struct ExplanationSpec {
pub parameters: Option<ExplanationParameters>,
pub metadata: Option<ExplanationMetadata>,
/* private fields */
}Available on crate features
dataset-service or deployment-resource-pool-service or endpoint-service or job-service or model-service or pipeline-service only.Expand description
Specification of Model explanation.
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.parameters: Option<ExplanationParameters>Required. Parameters that configure explaining of the Model’s predictions.
metadata: Option<ExplanationMetadata>Optional. Metadata describing the Model’s input and output for explanation.
Implementations§
Source§impl ExplanationSpec
impl ExplanationSpec
pub fn new() -> Self
Sourcepub fn set_parameters<T>(self, v: T) -> Selfwhere
T: Into<ExplanationParameters>,
pub fn set_parameters<T>(self, v: T) -> Selfwhere
T: Into<ExplanationParameters>,
Sets the value of parameters.
Sourcepub fn set_or_clear_parameters<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExplanationParameters>,
pub fn set_or_clear_parameters<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExplanationParameters>,
Sets or clears the value of parameters.
Sourcepub fn set_metadata<T>(self, v: T) -> Selfwhere
T: Into<ExplanationMetadata>,
pub fn set_metadata<T>(self, v: T) -> Selfwhere
T: Into<ExplanationMetadata>,
Sets the value of metadata.
Sourcepub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExplanationMetadata>,
pub fn set_or_clear_metadata<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExplanationMetadata>,
Sets or clears the value of metadata.
Trait Implementations§
Source§impl Clone for ExplanationSpec
impl Clone for ExplanationSpec
Source§fn clone(&self) -> ExplanationSpec
fn clone(&self) -> ExplanationSpec
Returns a duplicate 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 Debug for ExplanationSpec
impl Debug for ExplanationSpec
Source§impl Default for ExplanationSpec
impl Default for ExplanationSpec
Source§fn default() -> ExplanationSpec
fn default() -> ExplanationSpec
Returns the “default value” for a type. Read more
Source§impl Message for ExplanationSpec
impl Message for ExplanationSpec
Source§impl PartialEq for ExplanationSpec
impl PartialEq for ExplanationSpec
impl StructuralPartialEq for ExplanationSpec
Auto Trait Implementations§
impl Freeze for ExplanationSpec
impl RefUnwindSafe for ExplanationSpec
impl Send for ExplanationSpec
impl Sync for ExplanationSpec
impl Unpin for ExplanationSpec
impl UnwindSafe for ExplanationSpec
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