#[non_exhaustive]pub struct CreateTuningJobRequest {
pub parent: String,
pub tuning_job: Option<TuningJob>,
/* private fields */
}Available on crate feature
gen-ai-tuning-service only.Expand description
Request message for GenAiTuningService.CreateTuningJob.
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 resource name of the Location to create the TuningJob in.
Format: projects/{project}/locations/{location}
tuning_job: Option<TuningJob>Required. The TuningJob to create.
Implementations§
Source§impl CreateTuningJobRequest
impl CreateTuningJobRequest
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_tuning_job<T>(self, v: T) -> Self
pub fn set_tuning_job<T>(self, v: T) -> Self
Sets the value of tuning_job.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::TuningJob;
let x = CreateTuningJobRequest::new().set_tuning_job(TuningJob::default()/* use setters */);Sourcepub fn set_or_clear_tuning_job<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_tuning_job<T>(self, v: Option<T>) -> Self
Sets or clears the value of tuning_job.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::TuningJob;
let x = CreateTuningJobRequest::new().set_or_clear_tuning_job(Some(TuningJob::default()/* use setters */));
let x = CreateTuningJobRequest::new().set_or_clear_tuning_job(None::<TuningJob>);Trait Implementations§
Source§impl Clone for CreateTuningJobRequest
impl Clone for CreateTuningJobRequest
Source§fn clone(&self) -> CreateTuningJobRequest
fn clone(&self) -> CreateTuningJobRequest
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 CreateTuningJobRequest
impl Debug for CreateTuningJobRequest
Source§impl Default for CreateTuningJobRequest
impl Default for CreateTuningJobRequest
Source§fn default() -> CreateTuningJobRequest
fn default() -> CreateTuningJobRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateTuningJobRequest
impl Message for CreateTuningJobRequest
Source§impl PartialEq for CreateTuningJobRequest
impl PartialEq for CreateTuningJobRequest
impl StructuralPartialEq for CreateTuningJobRequest
Auto Trait Implementations§
impl Freeze for CreateTuningJobRequest
impl RefUnwindSafe for CreateTuningJobRequest
impl Send for CreateTuningJobRequest
impl Sync for CreateTuningJobRequest
impl Unpin for CreateTuningJobRequest
impl UnwindSafe for CreateTuningJobRequest
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