Struct minisign::SecretKeyBox
source · pub struct SecretKeyBox(/* private fields */);
Expand description
A secret key and its metadata.
A SecretKeyBox
represents a raw secret key, along with a key
identifier, an untrusted description, and information required to
decrypt it using a password.
This is what usually gets exported to disk.
A SecretKeyBox
can be directly converted to/from a single-line string.
Implementations§
source§impl SecretKeyBox
impl SecretKeyBox
sourcepub fn from_string(s: &str) -> Result<SecretKeyBox>
pub fn from_string(s: &str) -> Result<SecretKeyBox>
Create a new SecretKeyBox
from a string.
sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Return a SecretKeyBox
for a string, for storage.
Trait Implementations§
source§impl Clone for SecretKeyBox
impl Clone for SecretKeyBox
source§fn clone(&self) -> SecretKeyBox
fn clone(&self) -> SecretKeyBox
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SecretKeyBox
impl Debug for SecretKeyBox
source§impl From<SecretKeyBox> for String
impl From<SecretKeyBox> for String
source§fn from(skb: SecretKeyBox) -> String
fn from(skb: SecretKeyBox) -> String
Converts to this type from the input type.
source§impl From<String> for SecretKeyBox
impl From<String> for SecretKeyBox
source§fn from(s: String) -> SecretKeyBox
fn from(s: String) -> SecretKeyBox
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SecretKeyBox
impl Send for SecretKeyBox
impl Sync for SecretKeyBox
impl Unpin for SecretKeyBox
impl UnwindSafe for SecretKeyBox
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