#[non_exhaustive]pub struct InputMetadataOverride {
pub input_baselines: Vec<Value>,
/* private fields */
}Available on crate feature
prediction-service only.Expand description
The input metadata entries to be overridden.
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.input_baselines: Vec<Value>Baseline inputs for this feature.
This overrides the input_baseline field of the
ExplanationMetadata.InputMetadata
object of the corresponding feature’s input metadata. If it’s not
specified, the original baselines are not overridden.
Implementations§
Source§impl InputMetadataOverride
impl InputMetadataOverride
pub fn new() -> Self
Sourcepub fn set_input_baselines<T, V>(self, v: T) -> Self
pub fn set_input_baselines<T, V>(self, v: T) -> Self
Sets the value of input_baselines.
§Example
ⓘ
use wkt::Value;
let x = InputMetadataOverride::new()
.set_input_baselines([
Value::default()/* use setters */,
Value::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for InputMetadataOverride
impl Clone for InputMetadataOverride
Source§fn clone(&self) -> InputMetadataOverride
fn clone(&self) -> InputMetadataOverride
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 InputMetadataOverride
impl Debug for InputMetadataOverride
Source§impl Default for InputMetadataOverride
impl Default for InputMetadataOverride
Source§fn default() -> InputMetadataOverride
fn default() -> InputMetadataOverride
Returns the “default value” for a type. Read more
Source§impl Message for InputMetadataOverride
impl Message for InputMetadataOverride
Source§impl PartialEq for InputMetadataOverride
impl PartialEq for InputMetadataOverride
impl StructuralPartialEq for InputMetadataOverride
Auto Trait Implementations§
impl Freeze for InputMetadataOverride
impl RefUnwindSafe for InputMetadataOverride
impl Send for InputMetadataOverride
impl Sync for InputMetadataOverride
impl Unpin for InputMetadataOverride
impl UnwindSafe for InputMetadataOverride
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