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