Enum bdrck::crypto::key::WrappedPayload
source · pub enum WrappedPayload {
Key(Key),
WrappedKey(WrappedKey),
}
Expand description
A WrappedPayload is the data which was wrapped by a key. Because keys can be wrapped arbitrarily many times, the unwrapped payload may either be a real key, or it may be another wrapped key.
Variants
Key(Key)
The thing which has been wrapped is a Key, so unwrapping this payload will return the raw Key.
WrappedKey(WrappedKey)
The thing that has been wrapped is another wrapped payload, so more than one unwrap operation is needed to access the raw underlying Key.
Trait Implementations
sourceimpl Clone for WrappedPayload
impl Clone for WrappedPayload
sourcefn clone(&self) -> WrappedPayload
fn clone(&self) -> WrappedPayload
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'de> Deserialize<'de> for WrappedPayload
impl<'de> Deserialize<'de> for WrappedPayload
sourcefn 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
sourceimpl Serialize for WrappedPayload
impl Serialize for WrappedPayload
Auto Trait Implementations
impl RefUnwindSafe for WrappedPayload
impl Send for WrappedPayload
impl Sync for WrappedPayload
impl Unpin for WrappedPayload
impl UnwindSafe for WrappedPayload
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more