#[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
pub fn new() -> Self
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more