#[non_exhaustive]pub struct ReservationSlot {
pub creation_timestamp: Option<String>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub physical_topology: Option<ReservationSlotPhysicalTopology>,
pub self_link: Option<String>,
pub self_link_with_id: Option<String>,
pub share_settings: Option<ShareSettings>,
pub state: Option<State>,
pub status: Option<ReservationSlotStatus>,
pub zone: Option<String>,
/* private fields */
}reservation-slots only.Expand description
Represents a reservation slot resource.
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.creation_timestamp: Option<String>Output only. [Output Only] The creation timestamp, formatted asRFC3339 text.
id: Option<u64>Output only. [Output Only] The unique identifier for this resource. This identifier is defined by the server.
kind: Option<String>Output only. [Output Only] The type of resource. Alwayscompute#reservationSlot for reservation slots.
name: Option<String>Output only. [Output Only] The name of the reservation slot.
physical_topology: Option<ReservationSlotPhysicalTopology>Output only. [Output Only] The physical topology of the reservation slot.
self_link: Option<String>Output only. [Output Only] A server-defined fully-qualified URL for this resource.
self_link_with_id: Option<String>Output only. [Output Only] A server-defined URL for this resource with the resource ID.
Specify share settings to create a shared slot. Set to empty to inherit the share settings from a parent resource.
state: Option<State>Output only. [Output Only] The state of the reservation slot.
status: Option<ReservationSlotStatus>Output only. [Output Only] The status of the reservation slot.
zone: Option<String>Output only. [Output Only] The zone in which the reservation slot resides.
Implementations§
Source§impl ReservationSlot
impl ReservationSlot
Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = ReservationSlot::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = ReservationSlot::new().set_or_clear_creation_timestamp(Some("example"));
let x = ReservationSlot::new().set_or_clear_creation_timestamp(None::<String>);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_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_physical_topology<T>(self, v: T) -> Selfwhere
T: Into<ReservationSlotPhysicalTopology>,
👎Deprecated
pub fn set_physical_topology<T>(self, v: T) -> Selfwhere
T: Into<ReservationSlotPhysicalTopology>,
Sets the value of physical_topology.
§Example
use google_cloud_compute_v1::model::ReservationSlotPhysicalTopology;
let x = ReservationSlot::new().set_physical_topology(ReservationSlotPhysicalTopology::default()/* use setters */);Sourcepub fn set_or_clear_physical_topology<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationSlotPhysicalTopology>,
👎Deprecated
pub fn set_or_clear_physical_topology<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationSlotPhysicalTopology>,
Sets or clears the value of physical_topology.
§Example
use google_cloud_compute_v1::model::ReservationSlotPhysicalTopology;
let x = ReservationSlot::new().set_or_clear_physical_topology(Some(ReservationSlotPhysicalTopology::default()/* use setters */));
let x = ReservationSlot::new().set_or_clear_physical_topology(None::<ReservationSlotPhysicalTopology>);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_self_link_with_id<T>(self, v: T) -> Self
pub fn set_self_link_with_id<T>(self, v: T) -> Self
Sets the value of self_link_with_id.
§Example
let x = ReservationSlot::new().set_self_link_with_id("example");Sourcepub fn set_or_clear_self_link_with_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_self_link_with_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of self_link_with_id.
§Example
let x = ReservationSlot::new().set_or_clear_self_link_with_id(Some("example"));
let x = ReservationSlot::new().set_or_clear_self_link_with_id(None::<String>);Sets the value of share_settings.
§Example
use google_cloud_compute_v1::model::ShareSettings;
let x = ReservationSlot::new().set_share_settings(ShareSettings::default()/* use setters */);Sets or clears the value of share_settings.
§Example
use google_cloud_compute_v1::model::ShareSettings;
let x = ReservationSlot::new().set_or_clear_share_settings(Some(ShareSettings::default()/* use setters */));
let x = ReservationSlot::new().set_or_clear_share_settings(None::<ShareSettings>);Sourcepub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_state<T>(self, v: Option<T>) -> Self
Sets or clears the value of state.
§Example
use google_cloud_compute_v1::model::reservation_slot::State;
let x0 = ReservationSlot::new().set_or_clear_state(Some(State::Creating));
let x1 = ReservationSlot::new().set_or_clear_state(Some(State::Deleting));
let x2 = ReservationSlot::new().set_or_clear_state(Some(State::Unspecified));
let x_none = ReservationSlot::new().set_or_clear_state(None::<State>);Sourcepub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<ReservationSlotStatus>,
pub fn set_status<T>(self, v: T) -> Selfwhere
T: Into<ReservationSlotStatus>,
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationSlotStatus>,
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationSlotStatus>,
Trait Implementations§
Source§impl Clone for ReservationSlot
impl Clone for ReservationSlot
Source§fn clone(&self) -> ReservationSlot
fn clone(&self) -> ReservationSlot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReservationSlot
impl Debug for ReservationSlot
Source§impl Default for ReservationSlot
impl Default for ReservationSlot
Source§fn default() -> ReservationSlot
fn default() -> ReservationSlot
Source§impl Message for ReservationSlot
impl Message for ReservationSlot
Source§impl PartialEq for ReservationSlot
impl PartialEq for ReservationSlot
impl StructuralPartialEq for ReservationSlot
Auto Trait Implementations§
impl Freeze for ReservationSlot
impl RefUnwindSafe for ReservationSlot
impl Send for ReservationSlot
impl Sync for ReservationSlot
impl Unpin for ReservationSlot
impl UnsafeUnpin for ReservationSlot
impl UnwindSafe for ReservationSlot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request