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