pub struct ScopeId(pub [u8; 16]);Expand description
Opaque scope identifier for scoped indicative updates: exactly 16 bytes, contents client-defined. The server never interprets the contents; it only uses the id as a partition key for snapshot-omission eviction.
Wire form is a 32-character canonical lowercase hex JSON string. How a
client derives the bytes is its own convention: a zero-padded ASCII
label (ScopeId::from_label), raw UUID bytes (a UUID is already 128
bits), or a stable 128-bit hash of a longer name. Collisions only
matter within one wallet’s scopes, so non-cryptographic derivations
are fine.
Tuple Fields§
§0: [u8; 16]Implementations§
Trait Implementations§
impl Copy for ScopeId
Source§impl<'de> Deserialize<'de> for ScopeId
impl<'de> Deserialize<'de> for ScopeId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScopeId
impl StructuralPartialEq for ScopeId
Auto Trait Implementations§
impl Freeze for ScopeId
impl RefUnwindSafe for ScopeId
impl Send for ScopeId
impl Sync for ScopeId
impl Unpin for ScopeId
impl UnsafeUnpin for ScopeId
impl UnwindSafe for ScopeId
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