pub struct AiffTextChunks {
    pub name: Option<String>,
    pub author: Option<String>,
    pub copyright: Option<String>,
    pub annotations: Option<Vec<String>>,
    pub comments: Option<Vec<Comment>>,
}
Expand description

AIFF text chunks

Supported file types

Item storage

AIFF has a few chunks for storing basic metadata, all of which can only appear once in a file, except for annotations.

Conversions

To Tag

Items with ItemKey::Comment will be stored in the annotations field

From Tag

When converting from Tag, the following ItemKeys will be used:

When converting Comments, only the text field will be preserved.

Fields

name: Option<String>

The name of the piece

author: Option<String>

The author of the piece

copyright: Option<String>

A copyright notice consisting of the date followed by the copyright owner

annotations: Option<Vec<String>>

Basic comments

The use of these chunks is discouraged by spec, as the comments field is more powerful.

comments: Option<Vec<Comment>>

A more feature-rich comment

These are preferred over annotations. See Comment

Implementations

Returns the copyright message

Sets the copyright message

Removes the copyright message

Trait Implementations

Returns the artist Read more

Sets the artist Read more

Removes the artist Read more

Returns the title Read more

Sets the title Read more

Removes the title Read more

Returns the album Read more

Sets the album Read more

Removes the album Read more

Returns the genre Read more

Sets the genre Read more

Removes the genre Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Converts to this type from the input type.

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Writes the tag to a path

Errors

The associated error which can be returned from IO operations

Whether the tag has any items Read more

Save the tag to a File Read more

Dump the tag to a writer Read more

Remove a tag from a Path Read more

Remove a tag from a File Read more

Clear the tag, removing all items 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.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.