pub struct COSEKey { /* private fields */ }Implementations§
Source§impl COSEKey
impl COSEKey
pub fn set_key_type(&mut self, key_type: &Label)
pub fn key_type(&self) -> Label
pub fn set_key_id(&mut self, key_id: Vec<u8>)
pub fn key_id(&self) -> Option<Vec<u8>>
pub fn set_algorithm_id(&mut self, algorithm_id: &Label)
pub fn algorithm_id(&self) -> Option<Label>
pub fn set_key_ops(&mut self, key_ops: &Labels)
pub fn key_ops(&self) -> Option<Labels>
pub fn set_base_init_vector(&mut self, base_init_vector: Vec<u8>)
pub fn base_init_vector(&self) -> Option<Vec<u8>>
pub fn header(&self, label: &Label) -> Option<CBORValue>
pub fn set_header( &mut self, label: &Label, value: &CBORValue, ) -> Result<(), JsError>
pub fn new(key_type: &Label) -> Self
Trait Implementations§
Source§impl Deserialize for COSEKey
impl Deserialize for COSEKey
fn deserialize<R: BufRead + Seek>( raw: &mut Deserializer<R>, ) -> Result<Self, DeserializeError>
Source§impl FromBytes for COSEKey
impl FromBytes for COSEKey
fn from_bytes(bytes: Vec<u8>) -> Result<COSEKey, DeserializeError>
Auto Trait Implementations§
impl Freeze for COSEKey
impl RefUnwindSafe for COSEKey
impl Send for COSEKey
impl Sync for COSEKey
impl Unpin for COSEKey
impl UnwindSafe for COSEKey
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