pub enum CertHashAlgorithm {
Numeric(i64),
Named(String),
}Expand description
Algorithm identifier for certificate hash.
Can be either a numeric COSE algorithm ID or a named string.
Variants§
Numeric(i64)
Numeric COSE algorithm identifier (e.g., -16 for SHA-256)
Named(String)
Named algorithm string (for compatibility)
Trait Implementations§
Source§impl Clone for CertHashAlgorithm
impl Clone for CertHashAlgorithm
Source§fn clone(&self) -> CertHashAlgorithm
fn clone(&self) -> CertHashAlgorithm
Returns a duplicate 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 CertHashAlgorithm
impl Debug for CertHashAlgorithm
Source§impl Default for CertHashAlgorithm
impl Default for CertHashAlgorithm
Source§impl<'de> Deserialize<'de> for CertHashAlgorithm
impl<'de> Deserialize<'de> for CertHashAlgorithm
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 for CertHashAlgorithm
impl PartialEq for CertHashAlgorithm
Source§impl Serialize for CertHashAlgorithm
impl Serialize for CertHashAlgorithm
impl Eq for CertHashAlgorithm
impl StructuralPartialEq for CertHashAlgorithm
Auto Trait Implementations§
impl Freeze for CertHashAlgorithm
impl RefUnwindSafe for CertHashAlgorithm
impl Send for CertHashAlgorithm
impl Sync for CertHashAlgorithm
impl Unpin for CertHashAlgorithm
impl UnwindSafe for CertHashAlgorithm
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