pub struct Safekey(/* private fields */);Expand description
A filesystem-safe key derived deterministically from a Ref.
See docs/SAFEKEY.md for the full algorithm and reference test vectors.
Construct via Ref::safekey() (Phase 1+); inner field is pub(crate).
Wire format: bare string (#[serde(transparent)]), e.g. "doi_10.1234_example".
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Safekey
impl<'de> Deserialize<'de> for Safekey
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 Eq for Safekey
impl StructuralPartialEq for Safekey
Auto Trait Implementations§
impl Freeze for Safekey
impl RefUnwindSafe for Safekey
impl Send for Safekey
impl Sync for Safekey
impl Unpin for Safekey
impl UnsafeUnpin for Safekey
impl UnwindSafe for Safekey
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