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