#[non_exhaustive]pub struct ReservationBlocksListResponse {
pub id: Option<String>,
pub items: Vec<ReservationBlock>,
pub kind: Option<String>,
pub next_page_token: Option<String>,
pub self_link: Option<String>,
pub warning: Option<Warning>,
/* private fields */
}Available on crate feature
reservation-blocks only.Expand description
A list of reservation blocks under a single reservation.
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.id: Option<String>Unique identifier for the resource; defined by the server.
items: Vec<ReservationBlock>A list of reservation block resources.
kind: Option<String>Type of the resource. Alwayscompute#reservationBlock for a list of reservation blocks.
next_page_token: Option<String>This token allows you to get the next page of results for list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
self_link: Option<String>Server-defined URL for this resource.
warning: Option<Warning>Informational warning message.
Implementations§
Source§impl ReservationBlocksListResponse
impl ReservationBlocksListResponse
pub fn new() -> Self
Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_kind<T>(self, v: Option<T>) -> Self
Sourcepub fn set_next_page_token<T>(self, v: T) -> Self
pub fn set_next_page_token<T>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = ReservationBlocksListResponse::new().set_next_page_token("example");Sourcepub fn set_or_clear_next_page_token<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_next_page_token<T>(self, v: Option<T>) -> Self
Sets or clears the value of next_page_token.
§Example
ⓘ
let x = ReservationBlocksListResponse::new().set_or_clear_next_page_token(Some("example"));
let x = ReservationBlocksListResponse::new().set_or_clear_next_page_token(None::<String>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link<T>(self, v: Option<T>) -> Self
Sourcepub fn set_warning<T>(self, v: T) -> Self
pub fn set_warning<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_warning<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_warning<T>(self, v: Option<T>) -> Self
Sets or clears the value of warning.
§Example
ⓘ
use google_cloud_compute_v1::model::reservation_blocks_list_response::Warning;
let x = ReservationBlocksListResponse::new().set_or_clear_warning(Some(Warning::default()/* use setters */));
let x = ReservationBlocksListResponse::new().set_or_clear_warning(None::<Warning>);Trait Implementations§
Source§impl Clone for ReservationBlocksListResponse
impl Clone for ReservationBlocksListResponse
Source§fn clone(&self) -> ReservationBlocksListResponse
fn clone(&self) -> ReservationBlocksListResponse
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 ReservationBlocksListResponse
impl Default for ReservationBlocksListResponse
Source§fn default() -> ReservationBlocksListResponse
fn default() -> ReservationBlocksListResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReservationBlocksListResponse
impl PartialEq for ReservationBlocksListResponse
Source§fn eq(&self, other: &ReservationBlocksListResponse) -> bool
fn eq(&self, other: &ReservationBlocksListResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReservationBlocksListResponse
Auto Trait Implementations§
impl Freeze for ReservationBlocksListResponse
impl RefUnwindSafe for ReservationBlocksListResponse
impl Send for ReservationBlocksListResponse
impl Sync for ReservationBlocksListResponse
impl Unpin for ReservationBlocksListResponse
impl UnwindSafe for ReservationBlocksListResponse
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