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