pub struct KeyWrappingSpecification(pub WrappingMethod, pub Option<EncryptionKeyInformation>, pub Option<MACOrSignatureKeyInformation>, pub Option<Vec<Attribute>>);Expand description
See KMIP 1.0 section 2.1.6 Key Wrapping Specification.
Tuple Fields§
§0: WrappingMethod§1: Option<EncryptionKeyInformation>§2: Option<MACOrSignatureKeyInformation>§3: Option<Vec<Attribute>>Implementations§
Source§impl KeyWrappingSpecification
impl KeyWrappingSpecification
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
Source§impl Clone for KeyWrappingSpecification
impl Clone for KeyWrappingSpecification
Source§impl Debug for KeyWrappingSpecification
impl Debug for KeyWrappingSpecification
impl Eq for KeyWrappingSpecification
Source§impl PartialEq for KeyWrappingSpecification
impl PartialEq for KeyWrappingSpecification
impl StructuralPartialEq for KeyWrappingSpecification
Auto Trait Implementations§
impl Forget for KeyWrappingSpecification
impl Freeze for KeyWrappingSpecification
impl RefUnwindSafe for KeyWrappingSpecification
impl Send for KeyWrappingSpecification
impl Sync for KeyWrappingSpecification
impl Unpin for KeyWrappingSpecification
impl UnsafeUnpin for KeyWrappingSpecification
impl UnwindSafe for KeyWrappingSpecification
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