#[non_exhaustive]pub struct ListModelsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Expand description
Request for listing models associated with a resource.
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 parent for which to list models.
Format:
projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}
page_size: i32Optional. Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000.
page_token: StringOptional. A page token, received from a previous ListModels
call. Provide this to retrieve the subsequent page.
Implementations§
Source§impl ListModelsRequest
impl ListModelsRequest
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_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
Trait Implementations§
Source§impl Clone for ListModelsRequest
impl Clone for ListModelsRequest
Source§fn clone(&self) -> ListModelsRequest
fn clone(&self) -> ListModelsRequest
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 ListModelsRequest
impl Debug for ListModelsRequest
Source§impl Default for ListModelsRequest
impl Default for ListModelsRequest
Source§fn default() -> ListModelsRequest
fn default() -> ListModelsRequest
Returns the “default value” for a type. Read more
Source§impl Message for ListModelsRequest
impl Message for ListModelsRequest
Source§impl PartialEq for ListModelsRequest
impl PartialEq for ListModelsRequest
impl StructuralPartialEq for ListModelsRequest
Auto Trait Implementations§
impl Freeze for ListModelsRequest
impl RefUnwindSafe for ListModelsRequest
impl Send for ListModelsRequest
impl Sync for ListModelsRequest
impl Unpin for ListModelsRequest
impl UnsafeUnpin for ListModelsRequest
impl UnwindSafe for ListModelsRequest
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