pub enum COSEKeyType {
EC_OKP(COSEOKPKey),
EC_EC2(COSEEC2Key),
RSA(COSERSAKey),
}Expand description
The type of Key contained within a COSE value. You should never need to alter or change this type.
Variants§
EC_OKP(COSEOKPKey)
Identifies this as an Elliptic Curve octet key pair
EC_EC2(COSEEC2Key)
Identifies this as an Elliptic Curve EC2 key
RSA(COSERSAKey)
Identifies this as an RSA key
Trait Implementations§
Source§impl Clone for COSEKeyType
impl Clone for COSEKeyType
Source§fn clone(&self) -> COSEKeyType
fn clone(&self) -> COSEKeyType
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 COSEKeyType
impl Debug for COSEKeyType
Source§impl<'de> Deserialize<'de> for COSEKeyType
impl<'de> Deserialize<'de> for COSEKeyType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<COSEKeyType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<COSEKeyType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for COSEKeyType
impl PartialEq for COSEKeyType
Source§impl Serialize for COSEKeyType
impl Serialize for COSEKeyType
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
impl Eq for COSEKeyType
impl StructuralPartialEq for COSEKeyType
Auto Trait Implementations§
impl Freeze for COSEKeyType
impl RefUnwindSafe for COSEKeyType
impl Send for COSEKeyType
impl Sync for COSEKeyType
impl Unpin for COSEKeyType
impl UnwindSafe for COSEKeyType
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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