pub struct NamespaceKey(/* private fields */);Expand description
A namespace key. Under D34 it selects the namespace coordinator and prefixes every shard key. Single deployments use the reserved default; Multi deployments use a parsed self-certifying namespace (§7.4).
Implementations§
Source§impl NamespaceKey
impl NamespaceKey
Sourcepub fn deployment_default() -> Self
pub fn deployment_default() -> Self
The namespace of a single-repository deployment: the reserved
sentinel "root", which the SPEC-TRANSPORT-CONNECT §7.4 namespace
grammar (ed25519-… / 0x…) can never select.
Sourcepub fn from_namespace(namespace: &Namespace) -> Self
pub fn from_namespace(namespace: &Namespace) -> Self
A canonical namespace already validated by the shared grammar.
Trait Implementations§
Source§impl Clone for NamespaceKey
impl Clone for NamespaceKey
Source§impl Debug for NamespaceKey
impl Debug for NamespaceKey
impl Eq for NamespaceKey
Source§impl Hash for NamespaceKey
impl Hash for NamespaceKey
Source§impl Ord for NamespaceKey
impl Ord for NamespaceKey
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NamespaceKey
impl PartialEq for NamespaceKey
Source§impl PartialOrd for NamespaceKey
impl PartialOrd for NamespaceKey
impl StructuralPartialEq for NamespaceKey
Auto Trait Implementations§
impl Freeze for NamespaceKey
impl RefUnwindSafe for NamespaceKey
impl Send for NamespaceKey
impl Sync for NamespaceKey
impl Unpin for NamespaceKey
impl UnsafeUnpin for NamespaceKey
impl UnwindSafe for NamespaceKey
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