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