pub enum SignHash {
Specific(Hash),
Any,
}
Expand description
Enumeration of hash algorithms used in “hash-and-sign” algorithms.
Variants§
Specific(Hash)
A specific hash algorithm to choose.
Any
In a hash-and-sign algorithm policy, allow any hash algorithm. This value must not be used to build an algorithm specification to perform an operation. It is only valid to build policies, for signature algorithms.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SignHash
impl<'de> Deserialize<'de> for SignHash
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SignHash, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SignHash, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SignHash> for SignHash
impl PartialEq<SignHash> for SignHash
source§impl Serialize for SignHash
impl Serialize for SignHash
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