#[non_exhaustive]pub struct ReservationSubBlockPhysicalTopology {
pub block: Option<String>,
pub cluster: Option<String>,
pub sub_block: Option<String>,
/* private fields */
}Available on crate feature
reservation-sub-blocks 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.block: Option<String>The hash of the capacity block within the cluster.
cluster: Option<String>The cluster name of the reservation subBlock.
sub_block: Option<String>The hash of the capacity sub-block within the capacity block.
Implementations§
Source§impl ReservationSubBlockPhysicalTopology
impl ReservationSubBlockPhysicalTopology
pub fn new() -> Self
Sourcepub fn set_or_clear_block<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_block<T>(self, v: Option<T>) -> Self
Sourcepub fn set_cluster<T>(self, v: T) -> Self
pub fn set_cluster<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_cluster<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_cluster<T>(self, v: Option<T>) -> Self
Sourcepub fn set_sub_block<T>(self, v: T) -> Self
pub fn set_sub_block<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_sub_block<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_sub_block<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for ReservationSubBlockPhysicalTopology
impl Clone for ReservationSubBlockPhysicalTopology
Source§fn clone(&self) -> ReservationSubBlockPhysicalTopology
fn clone(&self) -> ReservationSubBlockPhysicalTopology
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 ReservationSubBlockPhysicalTopology
impl Default for ReservationSubBlockPhysicalTopology
Source§fn default() -> ReservationSubBlockPhysicalTopology
fn default() -> ReservationSubBlockPhysicalTopology
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReservationSubBlockPhysicalTopology
impl PartialEq for ReservationSubBlockPhysicalTopology
Source§fn eq(&self, other: &ReservationSubBlockPhysicalTopology) -> bool
fn eq(&self, other: &ReservationSubBlockPhysicalTopology) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReservationSubBlockPhysicalTopology
Auto Trait Implementations§
impl Freeze for ReservationSubBlockPhysicalTopology
impl RefUnwindSafe for ReservationSubBlockPhysicalTopology
impl Send for ReservationSubBlockPhysicalTopology
impl Sync for ReservationSubBlockPhysicalTopology
impl Unpin for ReservationSubBlockPhysicalTopology
impl UnwindSafe for ReservationSubBlockPhysicalTopology
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