Struct ffsend_api::action::metadata::RawMetadataResponse [−][src]
pub struct RawMetadataResponse { /* fields omitted */ }The metadata response from the server, when fetching the data through the API. This response contains raw metadata, which is still encrypted.
Methods
impl RawMetadataResponse[src]
impl RawMetadataResponsepub fn decrypt_metadata(
&self,
key_set: &KeySet
) -> Result<MetadataData, FailureError>[src]
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.
pub fn size(&self) -> u64[src]
pub fn size(&self) -> u64Get the file size in bytes.
Trait Implementations
impl Debug for RawMetadataResponse[src]
impl Debug for RawMetadataResponseAuto Trait Implementations
impl Send for RawMetadataResponse
impl Send for RawMetadataResponseimpl Sync for RawMetadataResponse
impl Sync for RawMetadataResponse