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