Struct cryptographic_message_syntax::asn1::rfc3161::MessageImprint
source · pub struct MessageImprint {
pub hash_algorithm: AlgorithmIdentifier,
pub hashed_message: OctetString,
}
Expand description
Message imprint.
MessageImprint ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
hashedMessage OCTET STRING }
Fields§
§hash_algorithm: AlgorithmIdentifier
§hashed_message: OctetString
Implementations§
source§impl MessageImprint
impl MessageImprint
pub fn take_from<S: Source>( cons: &mut Constructed<'_, S> ) -> Result<Self, DecodeError<S::Error>>
pub fn encode_ref(&self) -> impl Values + '_
Trait Implementations§
source§impl Clone for MessageImprint
impl Clone for MessageImprint
source§fn clone(&self) -> MessageImprint
fn clone(&self) -> MessageImprint
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 Debug for MessageImprint
impl Debug for MessageImprint
source§impl PartialEq for MessageImprint
impl PartialEq for MessageImprint
source§fn eq(&self, other: &MessageImprint) -> bool
fn eq(&self, other: &MessageImprint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MessageImprint
impl StructuralEq for MessageImprint
impl StructuralPartialEq for MessageImprint
Auto Trait Implementations§
impl RefUnwindSafe for MessageImprint
impl Send for MessageImprint
impl Sync for MessageImprint
impl Unpin for MessageImprint
impl UnwindSafe for MessageImprint
Blanket Implementations§
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 Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.