#[non_exhaustive]pub struct ExplanationMetadataOverride {
pub inputs: HashMap<String, InputMetadataOverride>,
/* private fields */
}Available on crate feature
prediction-service only.Expand description
The ExplanationMetadata entries that can be overridden at online explanation time.
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.inputs: HashMap<String, InputMetadataOverride>Required. Overrides the input metadata of the features. The key is the name of the feature to be overridden. The keys specified here must exist in the input metadata to be overridden. If a feature is not specified here, the corresponding feature’s input metadata is not overridden.
Implementations§
Source§impl ExplanationMetadataOverride
impl ExplanationMetadataOverride
pub fn new() -> Self
Sourcepub fn set_inputs<T, K, V>(self, v: T) -> Self
pub fn set_inputs<T, K, V>(self, v: T) -> Self
Sets the value of inputs.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::explanation_metadata_override::InputMetadataOverride;
let x = ExplanationMetadataOverride::new().set_inputs([
("key0", InputMetadataOverride::default()/* use setters */),
("key1", InputMetadataOverride::default()/* use (different) setters */),
]);Trait Implementations§
Source§impl Clone for ExplanationMetadataOverride
impl Clone for ExplanationMetadataOverride
Source§fn clone(&self) -> ExplanationMetadataOverride
fn clone(&self) -> ExplanationMetadataOverride
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 ExplanationMetadataOverride
impl Debug for ExplanationMetadataOverride
Source§impl Default for ExplanationMetadataOverride
impl Default for ExplanationMetadataOverride
Source§fn default() -> ExplanationMetadataOverride
fn default() -> ExplanationMetadataOverride
Returns the “default value” for a type. Read more
impl StructuralPartialEq for ExplanationMetadataOverride
Auto Trait Implementations§
impl Freeze for ExplanationMetadataOverride
impl RefUnwindSafe for ExplanationMetadataOverride
impl Send for ExplanationMetadataOverride
impl Sync for ExplanationMetadataOverride
impl Unpin for ExplanationMetadataOverride
impl UnwindSafe for ExplanationMetadataOverride
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