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