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

pub struct Metadata { /* fields omitted */ }

File metadata, which is send to the server.

Methods

impl Metadata
[src]

[src]

Construct metadata from the given properties.

Parameters:

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

[src]

Convert this structure to a JSON string.

[src]

Get the file name.

[src]

Get the file MIME type.

[src]

Get the input vector

[src]

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]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Metadata

impl Sync for Metadata