#[non_exhaustive]pub struct ShipmentTypeIncompatibility {
pub types: Vec<String>,
pub incompatibility_mode: IncompatibilityMode,
/* private fields */
}Expand description
Specifies incompatibilties between shipments depending on their shipment_type. The appearance of incompatible shipments on the same route is restricted based on the incompatibility mode.
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.types: Vec<String>List of incompatible types. Two shipments having different shipment_types
among those listed are “incompatible”.
incompatibility_mode: IncompatibilityModeMode applied to the incompatibility.
Implementations§
Source§impl ShipmentTypeIncompatibility
impl ShipmentTypeIncompatibility
pub fn new() -> Self
Sourcepub fn set_incompatibility_mode<T: Into<IncompatibilityMode>>(
self,
v: T,
) -> Self
pub fn set_incompatibility_mode<T: Into<IncompatibilityMode>>( self, v: T, ) -> Self
Sets the value of incompatibility_mode.
Trait Implementations§
Source§impl Clone for ShipmentTypeIncompatibility
impl Clone for ShipmentTypeIncompatibility
Source§fn clone(&self) -> ShipmentTypeIncompatibility
fn clone(&self) -> ShipmentTypeIncompatibility
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 ShipmentTypeIncompatibility
impl Debug for ShipmentTypeIncompatibility
Source§impl Default for ShipmentTypeIncompatibility
impl Default for ShipmentTypeIncompatibility
Source§fn default() -> ShipmentTypeIncompatibility
fn default() -> ShipmentTypeIncompatibility
Returns the “default value” for a type. Read more
impl StructuralPartialEq for ShipmentTypeIncompatibility
Auto Trait Implementations§
impl Freeze for ShipmentTypeIncompatibility
impl RefUnwindSafe for ShipmentTypeIncompatibility
impl Send for ShipmentTypeIncompatibility
impl Sync for ShipmentTypeIncompatibility
impl Unpin for ShipmentTypeIncompatibility
impl UnwindSafe for ShipmentTypeIncompatibility
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