#[non_exhaustive]pub struct ListInstancesResponse {
pub instances: Vec<Instance>,
pub next_page_token: String,
pub unreachable: Vec<String>,
/* private fields */
}Expand description
Response for ListInstances.
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.instances: Vec<Instance>A list of Redis instances 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}/instances/- and the
status field set to ERROR and status_message field set to “location not
available for ListInstances”.
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 ListInstancesResponse
impl ListInstancesResponse
pub fn new() -> Self
Sourcepub fn set_instances<T, V>(self, v: T) -> Self
pub fn set_instances<T, V>(self, v: T) -> Self
Sets the value of instances.
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 ListInstancesResponse
impl Clone for ListInstancesResponse
Source§fn clone(&self) -> ListInstancesResponse
fn clone(&self) -> ListInstancesResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more