pub struct BackendAuthorityId(/* private fields */);Expand description
Stable identity for one canonical object-storage namespace.
Implementations§
Source§impl BackendAuthorityId
impl BackendAuthorityId
pub fn new(value: impl Into<String>) -> Result<Self, IdentityError>
pub fn as_str(&self) -> &str
Sourcepub fn to_binary(&self) -> Vec<u8> ⓘ
pub fn to_binary(&self) -> Vec<u8> ⓘ
Encodes the bounded binary form as a one-byte length followed by the exact ASCII identity.
Sourcepub fn from_binary(bytes: &[u8]) -> Result<Self, IdentityError>
pub fn from_binary(bytes: &[u8]) -> Result<Self, IdentityError>
Decodes one exact bounded binary value, refusing trailing bytes.
Trait Implementations§
Source§impl Clone for BackendAuthorityId
impl Clone for BackendAuthorityId
Source§impl Debug for BackendAuthorityId
impl Debug for BackendAuthorityId
Source§impl<'de> Deserialize<'de> for BackendAuthorityId
impl<'de> Deserialize<'de> for BackendAuthorityId
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
Source§impl Display for BackendAuthorityId
impl Display for BackendAuthorityId
impl Eq for BackendAuthorityId
Source§impl FromStr for BackendAuthorityId
impl FromStr for BackendAuthorityId
Source§impl Hash for BackendAuthorityId
impl Hash for BackendAuthorityId
Source§impl Ord for BackendAuthorityId
impl Ord for BackendAuthorityId
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 BackendAuthorityId
impl PartialEq for BackendAuthorityId
Source§impl PartialOrd for BackendAuthorityId
impl PartialOrd for BackendAuthorityId
Source§impl Serialize for BackendAuthorityId
impl Serialize for BackendAuthorityId
impl StructuralPartialEq for BackendAuthorityId
Auto Trait Implementations§
impl Freeze for BackendAuthorityId
impl RefUnwindSafe for BackendAuthorityId
impl Send for BackendAuthorityId
impl Sync for BackendAuthorityId
impl Unpin for BackendAuthorityId
impl UnsafeUnpin for BackendAuthorityId
impl UnwindSafe for BackendAuthorityId
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