pub struct IdNamespace(pub [u8; 16]);Expand description
A caller-owned 128-bit namespace. Supplying it explicitly makes generated ids deterministic in tests and lets an adapter define invocation scope.
Tuple Fields§
§0: [u8; 16]Implementations§
Trait Implementations§
Source§impl Clone for IdNamespace
impl Clone for IdNamespace
impl Copy for IdNamespace
Source§impl Debug for IdNamespace
impl Debug for IdNamespace
Source§impl<'de> Deserialize<'de> for IdNamespace
impl<'de> Deserialize<'de> for IdNamespace
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IdNamespace
Source§impl Hash for IdNamespace
impl Hash for IdNamespace
Source§impl PartialEq for IdNamespace
impl PartialEq for IdNamespace
Source§impl Serialize for IdNamespace
impl Serialize for IdNamespace
impl StructuralPartialEq for IdNamespace
Auto Trait Implementations§
impl Freeze for IdNamespace
impl RefUnwindSafe for IdNamespace
impl Send for IdNamespace
impl Sync for IdNamespace
impl Unpin for IdNamespace
impl UnsafeUnpin for IdNamespace
impl UnwindSafe for IdNamespace
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