#[repr(i32)]
pub enum HashOp {
NoHash,
Sha256,
Sha512,
Keccak,
Ripemd160,
Bitcoin,
Sha512256,
}
Variants§
NoHash
NO_HASH is the default if no data passed. Note this is an illegal argument some places.
Sha256
Sha512
Keccak
Ripemd160
Bitcoin
ripemd160(sha256(x))
Sha512256
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for HashOp
impl<'de> Deserialize<'de> for HashOp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for HashOp
impl Ord for HashOp
source§impl PartialEq<HashOp> for HashOp
impl PartialEq<HashOp> for HashOp
source§impl PartialOrd<HashOp> for HashOp
impl PartialOrd<HashOp> for HashOp
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 moreimpl Copy for HashOp
impl Eq for HashOp
impl StructuralEq for HashOp
impl StructuralPartialEq for HashOp
Auto Trait Implementations§
impl RefUnwindSafe for HashOp
impl Send for HashOp
impl Sync for HashOp
impl Unpin for HashOp
impl UnwindSafe for HashOp
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request