[][src]Struct holochain_persistence_api::hash::HashString

pub struct HashString(_);

Methods

impl HashString[src]

pub fn new() -> HashString[src]

pub fn encode_from_bytes(bytes: &[u8], hash_type: Hash) -> HashString[src]

convert bytes to a b58 hashed string

pub fn encode_from_str(s: &str, hash_type: Hash) -> HashString[src]

convert a string as bytes to a b58 hashed string

pub fn encode_from_json_string(
    json_string: JsonString,
    hash_type: Hash
) -> HashString
[src]

magic all in one fn, take a JsonString + hash type and get a hashed b58 string back

Trait Implementations

impl<'a> AsRef<[u8]> for HashString[src]

impl<'a> From<&'a HashString> for JsonString[src]

impl From<HashString> for JsonString[src]

impl From<String> for HashString[src]

impl From<HashString> for String[src]

impl<'a> From<&'a str> for HashString[src]

impl<'a, '_> From<&'_ Vec<u8>> for HashString[src]

impl From<Vec<u8>> for HashString[src]

impl Clone for HashString[src]

impl Default for HashString[src]

impl Eq for HashString[src]

impl Ord for HashString[src]

impl PartialEq<HashString> for HashString[src]

impl PartialOrd<HashString> for HashString[src]

impl Display for HashString[src]

impl Debug for HashString[src]

impl<'a> TryFrom<&'a JsonString> for HashString[src]

type Error = JsonError

The type returned in the event of a conversion error.

impl TryFrom<JsonString> for HashString[src]

type Error = JsonError

The type returned in the event of a conversion error.

impl Hash for HashString[src]

impl TryInto<Vec<u8>> for HashString[src]

type Error = FromBase58Error

The type returned in the event of a conversion error.

impl<'a> TryInto<Vec<u8>> for &'a HashString[src]

type Error = FromBase58Error

The type returned in the event of a conversion error.

impl Serialize for HashString[src]

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

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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