Struct ffsend_api::file::metadata::Metadata[][src]

pub struct Metadata { /* fields omitted */ }

File metadata, which is send to the server.

Methods

impl Metadata
[src]

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

impl Debug for Metadata
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Metadata

impl Sync for Metadata