[−][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.
Methods
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]
Performs copy-assignment from source
. Read more
impl Into<String> for PublicKeyBox
[src]
impl Into<PublicKeyBox> for String
[src]
fn into(self) -> PublicKeyBox
[src]
impl Into<PublicKey> for PublicKeyBox
[src]
impl ToString for PublicKeyBox
[src]
impl Debug for PublicKeyBox
[src]
Auto Trait Implementations
impl Send for PublicKeyBox
impl Sync for PublicKeyBox
Blanket Implementations
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> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
type Output = T
Should always be Self