pub enum StoredKey {
String(String),
}Expand description
Enum for storing different types of keys.
Variants§
Implementations§
Source§impl StoredKey
impl StoredKey
pub fn decode(&self) -> Result<SigningKey, DecodeError>
pub fn encode(key: &SigningKey) -> String
Trait Implementations§
impl Eq for StoredKey
impl StructuralPartialEq for StoredKey
Auto Trait Implementations§
impl Freeze for StoredKey
impl RefUnwindSafe for StoredKey
impl Send for StoredKey
impl Sync for StoredKey
impl Unpin for StoredKey
impl UnwindSafe for StoredKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)