pub struct AuthorityId(/* private fields */);Expand description
Stable identity of one logical authoritative deployment.
Implementations§
Source§impl AuthorityId
impl AuthorityId
Sourcepub fn new() -> AuthorityId
pub fn new() -> AuthorityId
Creates an approximately time-ordered UUIDv7 identifier.
Sourcepub const fn from_uuid(value: Uuid) -> AuthorityId
pub const fn from_uuid(value: Uuid) -> AuthorityId
Wraps an existing UUID.
Source§impl AuthorityId
impl AuthorityId
Sourcepub const LEGACY_UNBOUND: AuthorityId
pub const LEGACY_UNBOUND: AuthorityId
Sentinel for data written before authority timeline binding was introduced.
It must be upgraded from trusted deployment metadata before serving production traffic.
Sourcepub const LOCAL_DEVELOPMENT: AuthorityId
pub const LOCAL_DEVELOPMENT: AuthorityId
Deterministic identity used only by reference/test builders.
Trait Implementations§
Source§impl Clone for AuthorityId
impl Clone for AuthorityId
Source§fn clone(&self) -> AuthorityId
fn clone(&self) -> AuthorityId
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 AuthorityId
Source§impl Debug for AuthorityId
impl Debug for AuthorityId
Source§impl Default for AuthorityId
impl Default for AuthorityId
Source§fn default() -> AuthorityId
fn default() -> AuthorityId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AuthorityId
impl<'de> Deserialize<'de> for AuthorityId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthorityId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthorityId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AuthorityId
impl Display for AuthorityId
impl Eq for AuthorityId
Source§impl FromStr for AuthorityId
impl FromStr for AuthorityId
Source§impl Hash for AuthorityId
impl Hash for AuthorityId
Source§impl Ord for AuthorityId
impl Ord for AuthorityId
Source§fn cmp(&self, other: &AuthorityId) -> Ordering
fn cmp(&self, other: &AuthorityId) -> 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
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 AuthorityId
impl PartialEq for AuthorityId
Source§impl PartialOrd for AuthorityId
impl PartialOrd for AuthorityId
Source§impl Serialize for AuthorityId
impl Serialize for AuthorityId
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 AuthorityId
Auto Trait Implementations§
impl Freeze for AuthorityId
impl RefUnwindSafe for AuthorityId
impl Send for AuthorityId
impl Sync for AuthorityId
impl Unpin for AuthorityId
impl UnsafeUnpin for AuthorityId
impl UnwindSafe for AuthorityId
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