Enum ffsend_api::action::metadata::RawMetadataResponse[][src]

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

V2

Raw metadata using in Send v2.

Fields of V2

meta: String

The encrypted metadata.

size: u64

The file size in bytes.

V3

Raw metadata using in Send v3.

Fields of V3

meta: String

The encrypted metadata.

Implementations

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.

Get the file size in bytes, if provided by the server (= Send v2).

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the TypeId of this object.