pub struct Bin3D {
pub name: String,
pub width: u32,
pub height: u32,
pub depth: u32,
pub cost: f64,
pub quantity: Option<usize>,
}Expand description
A bin (container) entry that demands can be placed inside.
Fields§
§name: StringHuman-readable identifier for this bin type.
width: u32Bin width (x axis).
height: u32Bin height (y axis, vertical).
depth: u32Bin depth (z axis).
cost: f64Per-unit cost of consuming a bin of this type.
quantity: Option<usize>Optional cap on the number of bins of this type that may be used.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bin3D
impl<'de> Deserialize<'de> for Bin3D
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
impl StructuralPartialEq for Bin3D
Auto Trait Implementations§
impl Freeze for Bin3D
impl RefUnwindSafe for Bin3D
impl Send for Bin3D
impl Sync for Bin3D
impl Unpin for Bin3D
impl UnsafeUnpin for Bin3D
impl UnwindSafe for Bin3D
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more