#[non_exhaustive]pub struct ListTuningJobsRequest {
pub parent: String,
pub filter: String,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Available on crate feature
gen-ai-tuning-service only.Expand description
Request message for GenAiTuningService.ListTuningJobs.
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 list the TuningJobs from.
Format: projects/{project}/locations/{location}
filter: StringOptional. The standard list filter.
page_size: i32Optional. The standard list page size.
page_token: StringOptional. The standard list page token. Typically obtained via ListTuningJobsResponse.next_page_token of the previous GenAiTuningService.ListTuningJob][] call.
Implementations§
Source§impl ListTuningJobsRequest
impl ListTuningJobsRequest
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_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
§Example
ⓘ
let x = ListTuningJobsRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for ListTuningJobsRequest
impl Clone for ListTuningJobsRequest
Source§fn clone(&self) -> ListTuningJobsRequest
fn clone(&self) -> ListTuningJobsRequest
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 ListTuningJobsRequest
impl Debug for ListTuningJobsRequest
Source§impl Default for ListTuningJobsRequest
impl Default for ListTuningJobsRequest
Source§fn default() -> ListTuningJobsRequest
fn default() -> ListTuningJobsRequest
Returns the “default value” for a type. Read more
Source§impl Message for ListTuningJobsRequest
impl Message for ListTuningJobsRequest
Source§impl PartialEq for ListTuningJobsRequest
impl PartialEq for ListTuningJobsRequest
impl StructuralPartialEq for ListTuningJobsRequest
Auto Trait Implementations§
impl Freeze for ListTuningJobsRequest
impl RefUnwindSafe for ListTuningJobsRequest
impl Send for ListTuningJobsRequest
impl Sync for ListTuningJobsRequest
impl Unpin for ListTuningJobsRequest
impl UnwindSafe for ListTuningJobsRequest
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