pub struct SigStructure { /* private fields */ }Implementations§
Source§impl SigStructure
impl SigStructure
pub fn context(&self) -> SigContext
pub fn body_protected(&self) -> ProtectedHeaderMap
pub fn sign_protected(&self) -> Option<ProtectedHeaderMap>
pub fn external_aad(&self) -> Vec<u8> ⓘ
pub fn payload(&self) -> Vec<u8> ⓘ
pub fn set_sign_protected(&mut self, sign_protected: &ProtectedHeaderMap)
pub fn new( context: SigContext, body_protected: &ProtectedHeaderMap, external_aad: Vec<u8>, payload: Vec<u8>, ) -> Self
Trait Implementations§
Source§impl Clone for SigStructure
impl Clone for SigStructure
Source§fn clone(&self) -> SigStructure
fn clone(&self) -> SigStructure
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 SigStructure
impl Debug for SigStructure
Source§impl Deserialize for SigStructure
impl Deserialize for SigStructure
fn deserialize<R: BufRead + Seek>( raw: &mut Deserializer<R>, ) -> Result<Self, DeserializeError>
Source§impl FromBytes for SigStructure
impl FromBytes for SigStructure
fn from_bytes(bytes: Vec<u8>) -> Result<SigStructure, DeserializeError>
Source§impl Serialize for SigStructure
impl Serialize for SigStructure
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
Auto Trait Implementations§
impl Freeze for SigStructure
impl RefUnwindSafe for SigStructure
impl Send for SigStructure
impl Sync for SigStructure
impl Unpin for SigStructure
impl UnwindSafe for SigStructure
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