#[non_exhaustive]pub struct ListInternalRangesResponse {
pub internal_ranges: Vec<InternalRange>,
pub next_page_token: String,
pub unreachable: Vec<String>,
/* private fields */
}Expand description
Response for InternalRange.ListInternalRanges
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.internal_ranges: Vec<InternalRange>Internal ranges to be returned.
next_page_token: StringThe next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result.
unreachable: Vec<String>Locations that could not be reached.
Implementations§
Source§impl ListInternalRangesResponse
impl ListInternalRangesResponse
pub fn new() -> Self
Sourcepub fn set_internal_ranges<T, V>(self, v: T) -> Self
pub fn set_internal_ranges<T, V>(self, v: T) -> Self
Sets the value of internal_ranges.
§Example
ⓘ
use google_cloud_networkconnectivity_v1::model::InternalRange;
let x = ListInternalRangesResponse::new()
.set_internal_ranges([
InternalRange::default()/* use setters */,
InternalRange::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 = ListInternalRangesResponse::new().set_next_page_token("example");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.
§Example
ⓘ
let x = ListInternalRangesResponse::new().set_unreachable(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for ListInternalRangesResponse
impl Clone for ListInternalRangesResponse
Source§fn clone(&self) -> ListInternalRangesResponse
fn clone(&self) -> ListInternalRangesResponse
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 ListInternalRangesResponse
impl Debug for ListInternalRangesResponse
Source§impl Default for ListInternalRangesResponse
impl Default for ListInternalRangesResponse
Source§fn default() -> ListInternalRangesResponse
fn default() -> ListInternalRangesResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListInternalRangesResponse
impl Message for ListInternalRangesResponse
impl StructuralPartialEq for ListInternalRangesResponse
Auto Trait Implementations§
impl Freeze for ListInternalRangesResponse
impl RefUnwindSafe for ListInternalRangesResponse
impl Send for ListInternalRangesResponse
impl Sync for ListInternalRangesResponse
impl Unpin for ListInternalRangesResponse
impl UnsafeUnpin for ListInternalRangesResponse
impl UnwindSafe for ListInternalRangesResponse
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