[−][src]Struct minisign::PublicKeyBox
A public key and its metadata.
A PublicKeyBox represents a raw public key, along with a key
identifier and an untrusted description.
This is what usually gets exported to disk.
A PublicKeyBox can be directly converted to/from a single-line string.
Implementations
impl PublicKeyBox[src]
pub fn from_string(s: &str) -> Result<PublicKeyBox>[src]
Create a new PublicKeyBox from a string.
pub fn into_string(self) -> String[src]
Return a PublicKeyBox for a string, for storage.
pub fn into_public_key(self) -> Result<PublicKey>[src]
Convert a PublicKeyBox to a string, for storage.
pub fn to_bytes(&self) -> Vec<u8>[src]
Return a byte representation of the public key, for storage.
Trait Implementations
impl Clone for PublicKeyBox[src]
fn clone(&self) -> PublicKeyBox[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for PublicKeyBox[src]
impl Into<PublicKey> for PublicKeyBox[src]
impl Into<PublicKeyBox> for String[src]
fn into(self) -> PublicKeyBox[src]
impl Into<String> for PublicKeyBox[src]
impl ToString for PublicKeyBox[src]
Auto Trait Implementations
impl RefUnwindSafe for PublicKeyBox
impl Send for PublicKeyBox
impl Sync for PublicKeyBox
impl Unpin for PublicKeyBox
impl UnwindSafe for PublicKeyBox
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,