pub struct MovementSubject {
pub entity: EntityRef,
pub role: MovementSubjectRole,
pub quantity: Option<u64>,
pub expected_custody: Option<EntityRef>,
}Expand description
One typed identity in a movement manifest.
Fields§
§entity: EntityRef§role: MovementSubjectRole§quantity: Option<u64>Cargo quantities are integer units and must be positive. Other roles normally leave this unset because their cardinality is one identity.
expected_custody: Option<EntityRef>Expected carrier/custodian identity at admission, when applicable.
Trait Implementations§
Source§impl Clone for MovementSubject
impl Clone for MovementSubject
Source§fn clone(&self) -> MovementSubject
fn clone(&self) -> MovementSubject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MovementSubject
impl Debug for MovementSubject
Source§impl<'de> Deserialize<'de> for MovementSubject
impl<'de> Deserialize<'de> for MovementSubject
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MovementSubject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MovementSubject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MovementSubject
Source§impl Ord for MovementSubject
impl Ord for MovementSubject
Source§fn cmp(&self, other: &MovementSubject) -> Ordering
fn cmp(&self, other: &MovementSubject) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MovementSubject
impl PartialEq for MovementSubject
Source§impl PartialOrd for MovementSubject
impl PartialOrd for MovementSubject
Source§impl Serialize for MovementSubject
impl Serialize for MovementSubject
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MovementSubject
Auto Trait Implementations§
impl Freeze for MovementSubject
impl RefUnwindSafe for MovementSubject
impl Send for MovementSubject
impl Sync for MovementSubject
impl Unpin for MovementSubject
impl UnsafeUnpin for MovementSubject
impl UnwindSafe for MovementSubject
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