[][src]Enum thrussh_keys::signature::Signature

pub enum Signature {
    Ed25519(SignatureBytes),
    RSA {
        hash: SignatureHash,
        bytes: Vec<u8>,
    },
}

The type of a signature, depending on the algorithm used.

Variants

An Ed25519 signature

RSA

An RSA signature

Fields of RSA

hash: SignatureHashbytes: Vec<u8>

Implementations

impl Signature[src]

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

pub fn from_base64(s: &[u8]) -> Result<Self, Error>[src]

Trait Implementations

impl AsRef<[u8]> for Signature[src]

impl Clone for Signature[src]

impl<'de> Deserialize<'de> for Signature[src]

impl Serialize for Signature[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.