pub struct DatacenterSnapshot {
pub name: String,
pub racks: Vec<RackSnapshot>,
}Expand description
Owned snapshot of one datacenter and its racks.
Fields§
§name: StringDC name.
racks: Vec<RackSnapshot>Racks in this DC.
Trait Implementations§
Source§impl Clone for DatacenterSnapshot
impl Clone for DatacenterSnapshot
Source§fn clone(&self) -> DatacenterSnapshot
fn clone(&self) -> DatacenterSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DatacenterSnapshot
impl Debug for DatacenterSnapshot
Source§impl From<&Datacenter> for DatacenterSnapshot
impl From<&Datacenter> for DatacenterSnapshot
Source§fn from(dc: &Datacenter) -> Self
fn from(dc: &Datacenter) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DatacenterSnapshot
impl PartialEq for DatacenterSnapshot
Source§fn eq(&self, other: &DatacenterSnapshot) -> bool
fn eq(&self, other: &DatacenterSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DatacenterSnapshot
impl StructuralPartialEq for DatacenterSnapshot
Auto Trait Implementations§
impl Freeze for DatacenterSnapshot
impl RefUnwindSafe for DatacenterSnapshot
impl Send for DatacenterSnapshot
impl Sync for DatacenterSnapshot
impl Unpin for DatacenterSnapshot
impl UnsafeUnpin for DatacenterSnapshot
impl UnwindSafe for DatacenterSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.