#[non_exhaustive]pub struct SqlInstancesListRequest {
pub filter: String,
pub max_results: u32,
pub page_token: String,
pub project: String,
/* private fields */
}
Expand description
Instance list request.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.filter: String
A filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, ‘instanceType:CLOUD_SQL_INSTANCE’. Fields can be nested as needed as per their JSON representation, such as ‘settings.userLabels.auto_start:true’.
Multiple filter queries are space-separated. For example. ‘state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE’. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
max_results: u32
The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
page_token: String
A previously-returned page token representing part of the larger set of results to view.
project: String
Project ID of the project for which to list Cloud SQL instances.
Implementations§
Source§impl SqlInstancesListRequest
impl SqlInstancesListRequest
pub fn new() -> Self
Sourcepub fn set_filter<T: Into<String>>(self, v: T) -> Self
pub fn set_filter<T: Into<String>>(self, v: T) -> Self
Sets the value of filter.
Sourcepub fn set_max_results<T: Into<u32>>(self, v: T) -> Self
pub fn set_max_results<T: Into<u32>>(self, v: T) -> Self
Sets the value of max_results.
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.
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sets the value of project.
Trait Implementations§
Source§impl Clone for SqlInstancesListRequest
impl Clone for SqlInstancesListRequest
Source§fn clone(&self) -> SqlInstancesListRequest
fn clone(&self) -> SqlInstancesListRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more