pub struct RangeCapacity {
pub capacity_type: Option<CapacityType>,
pub slots: Option<Vec<RangeSlot>>,
}Expand description
RangeCapacity : Range capacity entity where each entry has a capacity type and corresponding slots.
Fields§
§capacity_type: Option<CapacityType>§slots: Option<Vec<RangeSlot>>Array of capacity slots in range slot format.
Implementations§
Source§impl RangeCapacity
impl RangeCapacity
Sourcepub fn new() -> RangeCapacity
pub fn new() -> RangeCapacity
Range capacity entity where each entry has a capacity type and corresponding slots.
Trait Implementations§
Source§impl Clone for RangeCapacity
impl Clone for RangeCapacity
Source§fn clone(&self) -> RangeCapacity
fn clone(&self) -> RangeCapacity
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 RangeCapacity
impl Debug for RangeCapacity
Source§impl Default for RangeCapacity
impl Default for RangeCapacity
Source§fn default() -> RangeCapacity
fn default() -> RangeCapacity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RangeCapacity
impl<'de> Deserialize<'de> for RangeCapacity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RangeCapacity
impl PartialEq for RangeCapacity
Source§impl Serialize for RangeCapacity
impl Serialize for RangeCapacity
impl StructuralPartialEq for RangeCapacity
Auto Trait Implementations§
impl Freeze for RangeCapacity
impl RefUnwindSafe for RangeCapacity
impl Send for RangeCapacity
impl Sync for RangeCapacity
impl Unpin for RangeCapacity
impl UnwindSafe for RangeCapacity
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