pub struct Metadata { /* private fields */ }
Expand description

File metadata, which is send to the server.

Implementations

Construct metadata from the given properties.

Parameters:

  • iv: initialisation vector
  • name: file name
  • mime: file mimetype

Convert this structure to a JSON string.

Get the file name.

Get the file MIME type.

Get the input vector

Check whether this MIME type is recognized as supported archive type. true is returned if it’s an archive, false if not.

Trait Implementations

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.