#[non_exhaustive]pub struct SkippedShipment {
pub index: i32,
pub label: String,
pub reasons: Vec<Reason>,
/* private fields */
}Expand description
Specifies details of unperformed shipments in a solution. For trivial cases and/or if we are able to identify the cause for skipping, we report the reason here.
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.index: i32The index corresponds to the index of the shipment in the source
ShipmentModel.
label: StringCopy of the corresponding
Shipment.label, if specified
in the Shipment.
reasons: Vec<Reason>A list of reasons that explain why the shipment was skipped. See comment
above Reason.
Implementations§
Trait Implementations§
Source§impl Clone for SkippedShipment
impl Clone for SkippedShipment
Source§fn clone(&self) -> SkippedShipment
fn clone(&self) -> SkippedShipment
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 SkippedShipment
impl Debug for SkippedShipment
Source§impl Default for SkippedShipment
impl Default for SkippedShipment
Source§fn default() -> SkippedShipment
fn default() -> SkippedShipment
Returns the “default value” for a type. Read more
Source§impl Message for SkippedShipment
impl Message for SkippedShipment
Source§impl PartialEq for SkippedShipment
impl PartialEq for SkippedShipment
impl StructuralPartialEq for SkippedShipment
Auto Trait Implementations§
impl Freeze for SkippedShipment
impl RefUnwindSafe for SkippedShipment
impl Send for SkippedShipment
impl Sync for SkippedShipment
impl Unpin for SkippedShipment
impl UnwindSafe for SkippedShipment
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