#[non_exhaustive]pub struct ListUsableSubnetworksResponse {
pub subnetworks: Vec<UsableSubnetwork>,
pub next_page_token: String,
/* private fields */
}Expand description
ListUsableSubnetworksResponse is the response of ListUsableSubnetworksRequest.
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.subnetworks: Vec<UsableSubnetwork>A list of usable subnetworks in the specified network project.
next_page_token: StringThis token allows you to get the next page of results for list requests.
If the number of results is larger than page_size, use the
next_page_token as a value for the query parameter page_token in the
next request. The value will become empty when there are no more pages.
Implementations§
Source§impl ListUsableSubnetworksResponse
impl ListUsableSubnetworksResponse
pub fn new() -> Self
Sourcepub fn set_subnetworks<T, V>(self, v: T) -> Self
pub fn set_subnetworks<T, V>(self, v: T) -> Self
Sets the value of subnetworks.
§Example
ⓘ
use google_cloud_container_v1::model::UsableSubnetwork;
let x = ListUsableSubnetworksResponse::new()
.set_subnetworks([
UsableSubnetwork::default()/* use setters */,
UsableSubnetwork::default()/* use (different) setters */,
]);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.
§Example
ⓘ
let x = ListUsableSubnetworksResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListUsableSubnetworksResponse
impl Clone for ListUsableSubnetworksResponse
Source§fn clone(&self) -> ListUsableSubnetworksResponse
fn clone(&self) -> ListUsableSubnetworksResponse
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 Default for ListUsableSubnetworksResponse
impl Default for ListUsableSubnetworksResponse
Source§fn default() -> ListUsableSubnetworksResponse
fn default() -> ListUsableSubnetworksResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListUsableSubnetworksResponse
impl PartialEq for ListUsableSubnetworksResponse
Source§fn eq(&self, other: &ListUsableSubnetworksResponse) -> bool
fn eq(&self, other: &ListUsableSubnetworksResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListUsableSubnetworksResponse
Auto Trait Implementations§
impl Freeze for ListUsableSubnetworksResponse
impl RefUnwindSafe for ListUsableSubnetworksResponse
impl Send for ListUsableSubnetworksResponse
impl Sync for ListUsableSubnetworksResponse
impl Unpin for ListUsableSubnetworksResponse
impl UnwindSafe for ListUsableSubnetworksResponse
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