#[non_exhaustive]pub struct ListModelsRequest {
pub parent: String,
pub filter: String,
pub page_size: i32,
pub page_token: String,
pub read_mask: Option<FieldMask>,
pub order_by: String,
/* private fields */
}Available on crate feature
model-service only.Expand description
Request message for ModelService.ListModels.
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 Models from.
Format: projects/{project}/locations/{location}
filter: StringAn expression for filtering the results of the request. For field names both snake_case and camelCase are supported.
modelsupports = and !=.modelrepresents the Model ID, i.e. the last segment of the Model’s resource name.display_namesupports = and !=labelssupports general map functions that is:labels.key=value- key:value equality- `labels.key:* or labels:key - key existence
- A key including a space must be quoted.
labels."a key".
base_model_nameonly supports =
Some examples:
model=1234displayName="myDisplayName"labels.myKey="myValue"baseModelName="text-bison"
page_size: i32The standard list page size.
page_token: StringThe standard list page token. Typically obtained via ListModelsResponse.next_page_token of the previous ModelService.ListModels call.
read_mask: Option<FieldMask>Mask specifying which fields to read.
order_by: StringA comma-separated list of fields to order by, sorted in ascending order. Use “desc” after a field name for descending. Supported fields:
display_namecreate_timeupdate_time
Example: display_name, create_time desc.
Implementations§
Source§impl ListModelsRequest
impl ListModelsRequest
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
Sourcepub fn set_read_mask<T>(self, v: T) -> Self
pub fn set_read_mask<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_read_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_read_mask<T>(self, v: Option<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 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