#[non_exhaustive]pub struct ImportModelEvaluationRequest {
pub parent: String,
pub model_evaluation: Option<ModelEvaluation>,
/* private fields */
}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: Into<Option<ModelEvaluation>>>(
self,
v: T,
) -> Self
pub fn set_model_evaluation<T: Into<Option<ModelEvaluation>>>( self, v: T, ) -> Self
Sets 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 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 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<'de> Deserialize<'de> for ImportModelEvaluationRequestwhere
ImportModelEvaluationRequest: Default,
impl<'de> Deserialize<'de> for ImportModelEvaluationRequestwhere
ImportModelEvaluationRequest: Default,
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 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