Type Alias holochain::core::DhtOpHashB64
source · pub type DhtOpHashB64 = HoloHashB64<DhtOp>;
Expand description
Base64-ready version of DhtOpHash
Aliased Type§
struct DhtOpHashB64(/* private fields */);
Implementations§
source§impl<T> HoloHashB64<T>where
T: HashType,
impl<T> HoloHashB64<T>where T: HashType,
pub fn new(__0: HoloHash<T>) -> HoloHashB64<T>
source§impl<T> HoloHashB64<T>where
T: HashType,
impl<T> HoloHashB64<T>where T: HashType,
sourcepub fn from_b64_str(str: &str) -> Result<HoloHashB64<T>, HoloHashError>
pub fn from_b64_str(str: &str) -> Result<HoloHashB64<T>, HoloHashError>
Read a HoloHash from base64 string
Trait Implementations§
source§impl<'a, P> Arbitrary<'a> for HoloHashB64<P>where
P: PrimitiveHashType,
impl<'a, P> Arbitrary<'a> for HoloHashB64<P>where P: PrimitiveHashType,
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<HoloHashB64<P>, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<HoloHashB64<P>, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<T> Clone for HoloHashB64<T>where
T: Clone + HashType,
impl<T> Clone for HoloHashB64<T>where T: Clone + HashType,
source§fn clone(&self) -> HoloHashB64<T>
fn clone(&self) -> HoloHashB64<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de, T> Deserialize<'de> for HoloHashB64<T>where
T: HashType + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for HoloHashB64<T>where T: HashType + Deserialize<'de>,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<HoloHashB64<T>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<HoloHashB64<T>, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T> From<HoloHash<T>> for HoloHashB64<T>where
T: HashType,
impl<T> From<HoloHash<T>> for HoloHashB64<T>where T: HashType,
source§fn from(original: HoloHash<T>) -> HoloHashB64<T>
fn from(original: HoloHash<T>) -> HoloHashB64<T>
Converts to this type from the input type.
source§impl<T> Ord for HoloHashB64<T>where
T: Ord + HashType,
impl<T> Ord for HoloHashB64<T>where T: Ord + HashType,
source§fn cmp(&self, other: &HoloHashB64<T>) -> Ordering
fn cmp(&self, other: &HoloHashB64<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T> PartialEq<HoloHashB64<T>> for HoloHashB64<T>where
T: PartialEq<T> + HashType,
impl<T> PartialEq<HoloHashB64<T>> for HoloHashB64<T>where T: PartialEq<T> + HashType,
source§fn eq(&self, other: &HoloHashB64<T>) -> bool
fn eq(&self, other: &HoloHashB64<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T> PartialOrd<HoloHashB64<T>> for HoloHashB64<T>where
T: PartialOrd<T> + HashType,
impl<T> PartialOrd<HoloHashB64<T>> for HoloHashB64<T>where T: PartialOrd<T> + HashType,
source§fn partial_cmp(&self, other: &HoloHashB64<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &HoloHashB64<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> Serialize for HoloHashB64<T>where
T: HashType,
impl<T> Serialize for HoloHashB64<T>where T: HashType,
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more