Struct aws_nitro_enclaves_cose::header_map::HeaderMap
source · pub struct HeaderMap(/* private fields */);
Expand description
Implementation of header_map, with CborValue keys and CborValue values.
Implementations§
source§impl HeaderMap
impl HeaderMap
sourcepub fn insert(&mut self, key: CborValue, value: CborValue) -> Option<CborValue>
pub fn insert(&mut self, key: CborValue, value: CborValue) -> Option<CborValue>
Inserts an element into HeaderMap. Both key and value are CborValue. If key already has a value, that value is returned.
sourcepub fn from_bytes(header_map: &[u8]) -> Result<Self, CborError>
pub fn from_bytes(header_map: &[u8]) -> Result<Self, CborError>
Parses a slice of bytes into a HeaderMap, if possible.
Trait Implementations§
source§impl<'de> Deserialize<'de> for HeaderMap
impl<'de> Deserialize<'de> for HeaderMap
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 From<SignatureAlgorithm> for HeaderMap
impl From<SignatureAlgorithm> for HeaderMap
source§fn from(sig_alg: SignatureAlgorithm) -> Self
fn from(sig_alg: SignatureAlgorithm) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HeaderMap
impl RefUnwindSafe for HeaderMap
impl Send for HeaderMap
impl Sync for HeaderMap
impl Unpin for HeaderMap
impl UnwindSafe for HeaderMap
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