#[non_exhaustive]pub struct Load {
pub amount: i64,
/* private fields */
}Expand description
When performing a visit, a predefined amount may be added to the vehicle load if it’s a pickup, or subtracted if it’s a delivery. This message defines such amount. See load_demands.
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.amount: i64The amount by which the load of the vehicle performing the corresponding visit will vary. Since it is an integer, users are advised to choose an appropriate unit to avoid loss of precision. Must be ≥ 0.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Load
Auto Trait Implementations§
impl Freeze for Load
impl RefUnwindSafe for Load
impl Send for Load
impl Sync for Load
impl Unpin for Load
impl UnwindSafe for Load
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