pub struct ShaB64(/* private fields */);Expand description
§Sha1/Base64.
This struct holds ID data for MusicBrainz and CTDB consisting of a binary sha1 hash encoded with an almost-but-not-quite standard base64 alphabet.
String formatting is deferred until fmt::Display, allowing for a
slightly smaller and Copy-friendly footprint.
If you already have a stringified copy and want to get back to a ShaB64,
you can use ShaB64::decode or its FromStr or TryFrom<&str> impls.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShaB64
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ShaB64
Available on crate feature
serde only.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 Copy for ShaB64
impl Eq for ShaB64
impl StructuralPartialEq for ShaB64
Auto Trait Implementations§
impl Freeze for ShaB64
impl RefUnwindSafe for ShaB64
impl Send for ShaB64
impl Sync for ShaB64
impl Unpin for ShaB64
impl UnwindSafe for ShaB64
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