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