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