pub enum SignData {
PlainText,
Sha256Hash,
Raw,
}
Expand description
Specify the type of data being signed or verified.
Variants§
PlainText
The data to be signed is plain text. The data will be hashed and padded as specified by the signing algorithm.
Sha256Hash
The data to be signed is a SHA-256 hash. The data will be padded as specified by the signing algorithm.
Raw
The data is raw and will be passed directly to the signing functions.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SignData
impl<'de> Deserialize<'de> for SignData
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 PartialEq<SignData> for SignData
impl PartialEq<SignData> for SignData
impl Copy for SignData
impl Eq for SignData
impl StructuralEq for SignData
impl StructuralPartialEq for SignData
Auto Trait Implementations§
impl RefUnwindSafe for SignData
impl Send for SignData
impl Sync for SignData
impl Unpin for SignData
impl UnwindSafe for SignData
Blanket Implementations§
§impl<T> Annotate for Twhere
T: Serialize + ?Sized,
impl<T> Annotate for Twhere T: Serialize + ?Sized,
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_> ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_> ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_> ) -> Result<Document, Error>
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§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
§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
Compare self to
key
and return true
if they are equal.