[][src]Struct minisign::SignatureBox

pub struct SignatureBox { /* fields omitted */ }

A signature, as well as the metadata required to verify it.


impl SignatureBox[src]

pub fn is_prehashed(&self) -> bool[src]

Returns true if the signed data was pre-hashed.

pub fn untrusted_comment(&self) -> Result<String>[src]

The untrusted comment present in the signature.

pub fn trusted_comment(&self) -> Result<String>[src]

The trusted comment present in the signature.

pub fn from_string(s: &str) -> Result<SignatureBox>[src]

Create a new SignatureBox from a string.

pub fn to_string(&self) -> String[src]

Return a SignatureBox for a string, for storage.

pub fn into_string(self) -> String[src]

Convert a SignatureBox to a string, for storage.

pub fn to_bytes(&self) -> Vec<u8>[src]

Return a byte representation of the signature, for storage.

pub fn from_file<P>(sig_path: P) -> Result<SignatureBox> where
    P: AsRef<Path>, 

Load a SignatureBox from a file.

Trait Implementations

impl Clone for SignatureBox[src]

impl Into<SignatureBones> for SignatureBox[src]

impl Into<SignatureBox> for SignatureBones[src]

impl Into<SignatureBox> for String[src]

impl Into<String> for SignatureBox[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.