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

Represents the full metadata for a media file.

Implementations

Create a new MetaData instance with basic data.

Arguments

Create an empty MetaData instance.

Set the DCMetaData::title value.

Set the DCMetaData::author value.

Set the digest as digest::RecordDigest::Sha512 instance of the provided fingerprint.

Set the digest from the given URN string.

The URN must specify a valid supported digest scheme.

Returns the current DCMetaData::title value.

Returns the current DCMetaData::author value.

Set the DCMetaData::typ value.

Returns the current DCMetaData::typ value.

Set the current DCMetaData::subject value.

Returns the current DCMetaData::subject value.

Set the current DCMetaData::mime value.

Set the current DCMetaData::mime value from the given MIME identifier string.

Returns the current DCMetaData::mime value.

Set the current DCMetaData::language value.

Returns the current DCMetaData::language value.

Instantiate metadata from the extended attributes of the file in filepath.

Applies the metadata as extended file attributes of the file in filepath.

Will always export:

Will export, if defined:

Automatically detect media type of file in path.

Parse metadata from simplified metadata format contained in file in path.

see MetaData::from_file

Parse metadata from simplified metadata format contained in the given file instance f.

TODO: describe format.

Check whether a Metadata instance represents a valid entry.

Trait Implementations

Formats the value using the given formatter. 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.