#[non_exhaustive]pub struct ReservationSlotsGetResponse {
pub resource: Option<ReservationSlot>,
/* private fields */
}Available on crate feature
reservation-slots only.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.resource: Option<ReservationSlot>Implementations§
Source§impl ReservationSlotsGetResponse
impl ReservationSlotsGetResponse
pub fn new() -> Self
Sourcepub fn set_resource<T>(self, v: T) -> Selfwhere
T: Into<ReservationSlot>,
pub fn set_resource<T>(self, v: T) -> Selfwhere
T: Into<ReservationSlot>,
Sourcepub fn set_or_clear_resource<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationSlot>,
pub fn set_or_clear_resource<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationSlot>,
Sets or clears the value of resource.
§Example
ⓘ
use google_cloud_compute_v1::model::ReservationSlot;
let x = ReservationSlotsGetResponse::new().set_or_clear_resource(Some(ReservationSlot::default()/* use setters */));
let x = ReservationSlotsGetResponse::new().set_or_clear_resource(None::<ReservationSlot>);Trait Implementations§
Source§impl Clone for ReservationSlotsGetResponse
impl Clone for ReservationSlotsGetResponse
Source§fn clone(&self) -> ReservationSlotsGetResponse
fn clone(&self) -> ReservationSlotsGetResponse
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 ReservationSlotsGetResponse
impl Debug for ReservationSlotsGetResponse
Source§impl Default for ReservationSlotsGetResponse
impl Default for ReservationSlotsGetResponse
Source§fn default() -> ReservationSlotsGetResponse
fn default() -> ReservationSlotsGetResponse
Returns the “default value” for a type. Read more
impl StructuralPartialEq for ReservationSlotsGetResponse
Auto Trait Implementations§
impl Freeze for ReservationSlotsGetResponse
impl RefUnwindSafe for ReservationSlotsGetResponse
impl Send for ReservationSlotsGetResponse
impl Sync for ReservationSlotsGetResponse
impl Unpin for ReservationSlotsGetResponse
impl UnwindSafe for ReservationSlotsGetResponse
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