#[non_exhaustive]pub struct ImportModelEvaluationRequest {
pub parent: String,
pub model_evaluation: Option<ModelEvaluation>,
/* private fields */
}Available on crate feature
model-service only.Expand description
Request message for ModelService.ImportModelEvaluation
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.parent: StringRequired. The name of the parent model resource.
Format: projects/{project}/locations/{location}/models/{model}
model_evaluation: Option<ModelEvaluation>Required. Model evaluation resource to be imported.
Implementations§
Source§impl ImportModelEvaluationRequest
impl ImportModelEvaluationRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_model_evaluation<T>(self, v: T) -> Selfwhere
T: Into<ModelEvaluation>,
pub fn set_model_evaluation<T>(self, v: T) -> Selfwhere
T: Into<ModelEvaluation>,
Sets the value of model_evaluation.
Sourcepub fn set_or_clear_model_evaluation<T>(self, v: Option<T>) -> Selfwhere
T: Into<ModelEvaluation>,
pub fn set_or_clear_model_evaluation<T>(self, v: Option<T>) -> Selfwhere
T: Into<ModelEvaluation>,
Sets or clears the value of model_evaluation.
Trait Implementations§
Source§impl Clone for ImportModelEvaluationRequest
impl Clone for ImportModelEvaluationRequest
Source§fn clone(&self) -> ImportModelEvaluationRequest
fn clone(&self) -> ImportModelEvaluationRequest
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 ImportModelEvaluationRequest
impl Debug for ImportModelEvaluationRequest
Source§impl Default for ImportModelEvaluationRequest
impl Default for ImportModelEvaluationRequest
Source§fn default() -> ImportModelEvaluationRequest
fn default() -> ImportModelEvaluationRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImportModelEvaluationRequest
impl PartialEq for ImportModelEvaluationRequest
Source§fn eq(&self, other: &ImportModelEvaluationRequest) -> bool
fn eq(&self, other: &ImportModelEvaluationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImportModelEvaluationRequest
Auto Trait Implementations§
impl Freeze for ImportModelEvaluationRequest
impl RefUnwindSafe for ImportModelEvaluationRequest
impl Send for ImportModelEvaluationRequest
impl Sync for ImportModelEvaluationRequest
impl Unpin for ImportModelEvaluationRequest
impl UnwindSafe for ImportModelEvaluationRequest
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