pub struct UnloadingPolicy(/* private fields */);Expand description
Policy on how a vehicle can be unloaded. Applies only to shipments having both a pickup and a delivery.
Other shipments are free to occur anywhere on the route independent of
unloading_policy.
Implementations§
Source§impl UnloadingPolicy
impl UnloadingPolicy
Sourcepub const UNLOADING_POLICY_UNSPECIFIED: UnloadingPolicy
pub const UNLOADING_POLICY_UNSPECIFIED: UnloadingPolicy
Unspecified unloading policy; deliveries must just occur after their corresponding pickups.
Sourcepub const LAST_IN_FIRST_OUT: UnloadingPolicy
pub const LAST_IN_FIRST_OUT: UnloadingPolicy
Deliveries must occur in reverse order of pickups
Sourcepub const FIRST_IN_FIRST_OUT: UnloadingPolicy
pub const FIRST_IN_FIRST_OUT: UnloadingPolicy
Deliveries must occur in the same order as pickups
Sourcepub fn as_str_name(&self) -> Cow<'static, str>
pub fn as_str_name(&self) -> Cow<'static, str>
Gets the enum value as a string.
Sourcepub fn from_str_name(name: &str) -> Option<Self>
pub fn from_str_name(name: &str) -> Option<Self>
Creates an enum value from the value name.
Trait Implementations§
Source§impl Clone for UnloadingPolicy
impl Clone for UnloadingPolicy
Source§fn clone(&self) -> UnloadingPolicy
fn clone(&self) -> UnloadingPolicy
Returns a copy 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 UnloadingPolicy
impl Debug for UnloadingPolicy
Source§impl Default for UnloadingPolicy
impl Default for UnloadingPolicy
Source§impl<'de> Deserialize<'de> for UnloadingPolicy
impl<'de> Deserialize<'de> for UnloadingPolicy
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 From<i32> for UnloadingPolicy
impl From<i32> for UnloadingPolicy
Source§impl PartialEq for UnloadingPolicy
impl PartialEq for UnloadingPolicy
Source§impl Serialize for UnloadingPolicy
impl Serialize for UnloadingPolicy
impl StructuralPartialEq for UnloadingPolicy
Auto Trait Implementations§
impl Freeze for UnloadingPolicy
impl RefUnwindSafe for UnloadingPolicy
impl Send for UnloadingPolicy
impl Sync for UnloadingPolicy
impl Unpin for UnloadingPolicy
impl UnwindSafe for UnloadingPolicy
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