pub struct KeyMeta { /* private fields */ }Expand description
Data that must be stored to retrieve a key.
⚠️ WARNING: Note that while this data does not contain the encryption key, it should still not be exposed. Any device that can read this metadata could potentially decrypt the ciphertext if it has access to the Tang server.
Implementations§
source§impl KeyMeta
impl KeyMeta
sourcepub fn from_json_bytes(val: &[u8]) -> Result<Self>
pub fn from_json_bytes(val: &[u8]) -> Result<Self>
Deserialize this data from a JSON blob (this does the same as Self::from_json but does
not require a UTF-8 &str).
sourcepub fn client(&self, timeout: Option<Duration>) -> TangClient
pub fn client(&self, timeout: Option<Duration>) -> TangClient
Create a TangClient from the URL used to generate this key
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyMeta
impl<'de> Deserialize<'de> for KeyMeta
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 RefUnwindSafe for KeyMeta
impl Send for KeyMeta
impl Sync for KeyMeta
impl Unpin for KeyMeta
impl UnwindSafe for KeyMeta
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