#[non_exhaustive]pub struct ReservationSlotStatus {
pub physical_topology: Option<ReservationSlotPhysicalTopology>,
pub rdma_ip_addresses: Vec<String>,
pub running_instances: Vec<String>,
/* 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.physical_topology: Option<ReservationSlotPhysicalTopology>Output only. [Output Only] The physical topology of the reservation sub-block.
rdma_ip_addresses: Vec<String>Output only. The RDMA IP address of the physical host.
running_instances: Vec<String>Output only. The URIs of the instances currently running on this slot.
Implementations§
Source§impl ReservationSlotStatus
impl ReservationSlotStatus
pub fn new() -> Self
Sourcepub fn set_physical_topology<T>(self, v: T) -> Selfwhere
T: Into<ReservationSlotPhysicalTopology>,
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 = ReservationSlotStatus::new().set_physical_topology(ReservationSlotPhysicalTopology::default()/* use setters */);Sourcepub fn set_or_clear_physical_topology<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReservationSlotPhysicalTopology>,
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 = ReservationSlotStatus::new().set_or_clear_physical_topology(Some(ReservationSlotPhysicalTopology::default()/* use setters */));
let x = ReservationSlotStatus::new().set_or_clear_physical_topology(None::<ReservationSlotPhysicalTopology>);Sourcepub fn set_rdma_ip_addresses<T, V>(self, v: T) -> Self
pub fn set_rdma_ip_addresses<T, V>(self, v: T) -> Self
Sets the value of rdma_ip_addresses.
§Example
ⓘ
let x = ReservationSlotStatus::new().set_rdma_ip_addresses(["a", "b", "c"]);Sourcepub fn set_running_instances<T, V>(self, v: T) -> Self
pub fn set_running_instances<T, V>(self, v: T) -> Self
Sets the value of running_instances.
§Example
ⓘ
let x = ReservationSlotStatus::new().set_running_instances(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for ReservationSlotStatus
impl Clone for ReservationSlotStatus
Source§fn clone(&self) -> ReservationSlotStatus
fn clone(&self) -> ReservationSlotStatus
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 ReservationSlotStatus
impl Debug for ReservationSlotStatus
Source§impl Default for ReservationSlotStatus
impl Default for ReservationSlotStatus
Source§fn default() -> ReservationSlotStatus
fn default() -> ReservationSlotStatus
Returns the “default value” for a type. Read more
Source§impl Message for ReservationSlotStatus
impl Message for ReservationSlotStatus
Source§impl PartialEq for ReservationSlotStatus
impl PartialEq for ReservationSlotStatus
impl StructuralPartialEq for ReservationSlotStatus
Auto Trait Implementations§
impl Freeze for ReservationSlotStatus
impl RefUnwindSafe for ReservationSlotStatus
impl Send for ReservationSlotStatus
impl Sync for ReservationSlotStatus
impl Unpin for ReservationSlotStatus
impl UnwindSafe for ReservationSlotStatus
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