#[non_exhaustive]pub struct ListClustersResponse {
pub clusters: Vec<Cluster>,
pub next_page_token: String,
pub unreachable: Vec<String>,
/* private fields */
}Expand description
Response for [ListClusters][CloudRedis.ListClusters].
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.clusters: Vec<Cluster>A list of Redis clusters in the project in the specified location, or across all locations.
If the location_id in the parent field of the request is “-”, all regions
available to the project are queried, and the results aggregated.
If in such an aggregated query a location is unavailable, a placeholder
Redis entry is included in the response with the name field set to a
value of the form
projects/{project_id}/locations/{location_id}/clusters/- and the
status field set to ERROR and status_message field set to “location not
available for ListClusters”.
next_page_token: StringToken to retrieve the next page of results, or empty if there are no more results in the list.
unreachable: Vec<String>Locations that could not be reached.
Implementations§
Source§impl ListClustersResponse
impl ListClustersResponse
pub fn new() -> Self
Sourcepub fn set_clusters<T, V>(self, v: T) -> Self
pub fn set_clusters<T, V>(self, v: T) -> Self
Sets the value of clusters.
Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
Sourcepub fn set_unreachable<T, V>(self, v: T) -> Self
pub fn set_unreachable<T, V>(self, v: T) -> Self
Sets the value of unreachable.
Trait Implementations§
Source§impl Clone for ListClustersResponse
impl Clone for ListClustersResponse
Source§fn clone(&self) -> ListClustersResponse
fn clone(&self) -> ListClustersResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more