[][src]Enum firma::common::json::StringEncoding

pub enum StringEncoding {
    Base64(String),
    Hex(String),
    Bech32(String),
}

Variants

Base64(String)
Hex(String)
Bech32(String)

Implementations

impl StringEncoding[src]

pub fn new_base64(content: &[u8]) -> Self[src]

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

pub fn get_exactly_32(&self) -> Result<[u8; 32]>[src]

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

Trait Implementations

impl Clone for StringEncoding[src]

impl Debug for StringEncoding[src]

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

impl PartialEq<StringEncoding> for StringEncoding[src]

impl Serialize for StringEncoding[src]

impl StructuralPartialEq for StringEncoding[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> Same<T> for T

type Output = T

Should always be Self

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.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,