pub struct InboundShipmentId(/* private fields */);Expand description
Strongly-typed inbound shipment identifier.
Implementations§
Source§impl InboundShipmentId
impl InboundShipmentId
Sourcepub fn new() -> InboundShipmentId
Available on crate feature std only.
pub fn new() -> InboundShipmentId
std only.Create a new random ID (UUID v4).
Sourcepub const fn nil() -> InboundShipmentId
pub const fn nil() -> InboundShipmentId
Create a nil (all-zeros) ID.
Sourcepub const fn from_uuid(id: Uuid) -> InboundShipmentId
pub const fn from_uuid(id: Uuid) -> InboundShipmentId
Create from an existing Uuid.
Trait Implementations§
Source§impl AsRef<Uuid> for InboundShipmentId
impl AsRef<Uuid> for InboundShipmentId
Source§impl Clone for InboundShipmentId
impl Clone for InboundShipmentId
Source§fn clone(&self) -> InboundShipmentId
fn clone(&self) -> InboundShipmentId
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 moreimpl Copy for InboundShipmentId
Source§impl Debug for InboundShipmentId
impl Debug for InboundShipmentId
Source§impl Default for InboundShipmentId
Available on crate feature std only.
impl Default for InboundShipmentId
Available on crate feature
std only.Source§fn default() -> InboundShipmentId
fn default() -> InboundShipmentId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InboundShipmentId
impl<'de> Deserialize<'de> for InboundShipmentId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InboundShipmentId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InboundShipmentId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InboundShipmentId
impl Display for InboundShipmentId
impl Eq for InboundShipmentId
Source§impl From<InboundShipmentId> for Uuid
impl From<InboundShipmentId> for Uuid
Source§fn from(id: InboundShipmentId) -> Uuid
fn from(id: InboundShipmentId) -> Uuid
Converts to this type from the input type.
Source§impl From<Uuid> for InboundShipmentId
impl From<Uuid> for InboundShipmentId
Source§fn from(id: Uuid) -> InboundShipmentId
fn from(id: Uuid) -> InboundShipmentId
Converts to this type from the input type.
Source§impl FromStr for InboundShipmentId
impl FromStr for InboundShipmentId
Source§impl Hash for InboundShipmentId
impl Hash for InboundShipmentId
Source§impl Ord for InboundShipmentId
impl Ord for InboundShipmentId
Source§fn cmp(&self, other: &InboundShipmentId) -> Ordering
fn cmp(&self, other: &InboundShipmentId) -> 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
Source§impl PartialEq for InboundShipmentId
impl PartialEq for InboundShipmentId
Source§impl PartialOrd for InboundShipmentId
impl PartialOrd for InboundShipmentId
Source§impl Serialize for InboundShipmentId
impl Serialize for InboundShipmentId
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 InboundShipmentId
Auto Trait Implementations§
impl Freeze for InboundShipmentId
impl RefUnwindSafe for InboundShipmentId
impl Send for InboundShipmentId
impl Sync for InboundShipmentId
impl Unpin for InboundShipmentId
impl UnsafeUnpin for InboundShipmentId
impl UnwindSafe for InboundShipmentId
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