pub struct KeyEnvelope {
pub version: u32,
pub envelope_type: KeyEnvelopeType,
pub envelope_data: Vec<u8>,
}Fields§
§version: u32§envelope_type: KeyEnvelopeType§envelope_data: Vec<u8>Implementations§
Source§impl KeyEnvelope
impl KeyEnvelope
pub fn new(envelope_type: KeyEnvelopeType, envelope_data: Vec<u8>) -> Self
pub fn envelope_data(&self) -> &Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for KeyEnvelope
impl Clone for KeyEnvelope
Source§fn clone(&self) -> KeyEnvelope
fn clone(&self) -> KeyEnvelope
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 KeyEnvelope
impl Debug for KeyEnvelope
Source§impl<'de> Deserialize<'de> for KeyEnvelope
impl<'de> Deserialize<'de> for KeyEnvelope
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
Auto Trait Implementations§
impl Freeze for KeyEnvelope
impl RefUnwindSafe for KeyEnvelope
impl Send for KeyEnvelope
impl Sync for KeyEnvelope
impl Unpin for KeyEnvelope
impl UnsafeUnpin for KeyEnvelope
impl UnwindSafe for KeyEnvelope
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