pub enum RawMetadataResponse {
V2 {
meta: String,
size: u64,
},
V3 {
meta: String,
},
}Expand description
The metadata response from the server, when fetching the data through the API. This response contains raw metadata, which is still encrypted.
Variants§
Implementations§
Source§impl RawMetadataResponse
impl RawMetadataResponse
Sourcepub fn decrypt_metadata(
&self,
key_set: &KeySet,
) -> Result<MetadataData, MetadataError>
pub fn decrypt_metadata( &self, key_set: &KeySet, ) -> Result<MetadataData, MetadataError>
Get and decrypt the metadata, based on the raw data in this response.
The decrypted data is verified using an included tag. If verification failed, an error is returned.
Trait Implementations§
Source§impl Debug for RawMetadataResponse
impl Debug for RawMetadataResponse
Source§impl<'de> Deserialize<'de> for RawMetadataResponse
impl<'de> Deserialize<'de> for RawMetadataResponse
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 RawMetadataResponse
impl RefUnwindSafe for RawMetadataResponse
impl Send for RawMetadataResponse
impl Sync for RawMetadataResponse
impl Unpin for RawMetadataResponse
impl UnwindSafe for RawMetadataResponse
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