pub struct HeaderMap { /* private fields */ }
Implementations§
Source§impl HeaderMap
impl HeaderMap
pub fn set_algorithm_id(&mut self, algorithm_id: &Label)
pub fn algorithm_id(&self) -> Option<Label>
pub fn set_criticality(&mut self, criticality: &Labels)
pub fn criticality(&self) -> Option<Labels>
pub fn set_content_type(&mut self, content_type: &Label)
pub fn content_type(&self) -> Option<Label>
pub fn set_key_id(&mut self, key_id: Vec<u8>)
pub fn key_id(&self) -> Option<Vec<u8>>
pub fn set_init_vector(&mut self, init_vector: Vec<u8>)
pub fn init_vector(&self) -> Option<Vec<u8>>
pub fn set_partial_init_vector(&mut self, partial_init_vector: Vec<u8>)
pub fn partial_init_vector(&self) -> Option<Vec<u8>>
pub fn set_counter_signature(&mut self, counter_signature: &CounterSignature)
pub fn counter_signature(&self) -> Option<CounterSignature>
pub fn header(&self, label: &Label) -> Option<CBORValue>
pub fn set_header( &mut self, label: &Label, value: &CBORValue, ) -> Result<(), JsError>
pub fn keys(&self) -> Labels
pub fn new() -> Self
Trait Implementations§
Source§impl Deserialize for HeaderMap
impl Deserialize for HeaderMap
fn deserialize<R: BufRead + Seek>( raw: &mut Deserializer<R>, ) -> Result<Self, DeserializeError>
Source§impl FromBytes for HeaderMap
impl FromBytes for HeaderMap
fn from_bytes(bytes: Vec<u8>) -> Result<HeaderMap, DeserializeError>
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