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