#[non_exhaustive]pub struct CreateGeneratorEvaluationRequest {
pub parent: String,
pub generator_evaluation: Option<GeneratorEvaluation>,
/* private fields */
}Available on crate feature
generator-evaluations only.Expand description
Request of CreateGeneratorEvaluation.
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 generator resource name. Format:
projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>
generator_evaluation: Option<GeneratorEvaluation>Required. The generator evaluation to be created.
Implementations§
Source§impl CreateGeneratorEvaluationRequest
impl CreateGeneratorEvaluationRequest
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
Sourcepub fn set_generator_evaluation<T>(self, v: T) -> Selfwhere
T: Into<GeneratorEvaluation>,
pub fn set_generator_evaluation<T>(self, v: T) -> Selfwhere
T: Into<GeneratorEvaluation>,
Sets the value of generator_evaluation.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::GeneratorEvaluation;
let x = CreateGeneratorEvaluationRequest::new().set_generator_evaluation(GeneratorEvaluation::default()/* use setters */);Sourcepub fn set_or_clear_generator_evaluation<T>(self, v: Option<T>) -> Selfwhere
T: Into<GeneratorEvaluation>,
pub fn set_or_clear_generator_evaluation<T>(self, v: Option<T>) -> Selfwhere
T: Into<GeneratorEvaluation>,
Sets or clears the value of generator_evaluation.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::GeneratorEvaluation;
let x = CreateGeneratorEvaluationRequest::new().set_or_clear_generator_evaluation(Some(GeneratorEvaluation::default()/* use setters */));
let x = CreateGeneratorEvaluationRequest::new().set_or_clear_generator_evaluation(None::<GeneratorEvaluation>);Trait Implementations§
Source§impl Clone for CreateGeneratorEvaluationRequest
impl Clone for CreateGeneratorEvaluationRequest
Source§fn clone(&self) -> CreateGeneratorEvaluationRequest
fn clone(&self) -> CreateGeneratorEvaluationRequest
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 Default for CreateGeneratorEvaluationRequest
impl Default for CreateGeneratorEvaluationRequest
Source§fn default() -> CreateGeneratorEvaluationRequest
fn default() -> CreateGeneratorEvaluationRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateGeneratorEvaluationRequest
impl PartialEq for CreateGeneratorEvaluationRequest
Source§fn eq(&self, other: &CreateGeneratorEvaluationRequest) -> bool
fn eq(&self, other: &CreateGeneratorEvaluationRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateGeneratorEvaluationRequest
Auto Trait Implementations§
impl Freeze for CreateGeneratorEvaluationRequest
impl RefUnwindSafe for CreateGeneratorEvaluationRequest
impl Send for CreateGeneratorEvaluationRequest
impl Sync for CreateGeneratorEvaluationRequest
impl Unpin for CreateGeneratorEvaluationRequest
impl UnwindSafe for CreateGeneratorEvaluationRequest
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