Struct ffsend_api::action::metadata::RawMetadataResponse
source · pub struct RawMetadataResponse { /* private fields */ }Expand description
The metadata response from the server, when fetching the data through the API. This response contains raw metadata, which is still encrypted.
Implementations
sourceimpl RawMetadataResponse
impl RawMetadataResponse
sourcepub fn decrypt_metadata(
&self,
key_set: &KeySet
) -> Result<MetadataData, FailureError>
pub fn decrypt_metadata(
&self,
key_set: &KeySet
) -> Result<MetadataData, FailureError>
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
sourceimpl Debug for RawMetadataResponse
impl Debug for RawMetadataResponse
sourceimpl<'de> Deserialize<'de> for RawMetadataResponse
impl<'de> Deserialize<'de> for RawMetadataResponse
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
Auto Trait Implementations
impl RefUnwindSafe for RawMetadataResponse
impl Send for RawMetadataResponse
impl Sync for RawMetadataResponse
impl Unpin for RawMetadataResponse
impl UnwindSafe for RawMetadataResponse
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