Struct lofty::iff::AiffTextChunks
source · [−]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
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
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
sourceimpl AiffTextChunks
impl AiffTextChunks
sourcepub fn set_copyright(&mut self, value: String)
pub fn set_copyright(&mut self, value: String)
Sets the copyright message
sourcepub fn remove_copyright(&mut self)
pub fn remove_copyright(&mut self)
Removes the copyright message
Trait Implementations
sourceimpl Accessor for AiffTextChunks
impl Accessor for AiffTextChunks
sourcefn set_artist(&mut self, value: String)
fn set_artist(&mut self, value: String)
Sets the artist Read more
sourcefn remove_artist(&mut self)
fn remove_artist(&mut self)
Removes the artist Read more
sourcefn remove_title(&mut self)
fn remove_title(&mut self)
Removes the title Read more
sourcefn remove_album(&mut self)
fn remove_album(&mut self)
Removes the album Read more
sourcefn remove_genre(&mut self)
fn remove_genre(&mut self)
Removes the genre Read more
sourceimpl Clone for AiffTextChunks
impl Clone for AiffTextChunks
sourcefn clone(&self) -> AiffTextChunks
fn clone(&self) -> AiffTextChunks
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AiffTextChunks
impl Debug for AiffTextChunks
sourceimpl Default for AiffTextChunks
impl Default for AiffTextChunks
sourcefn default() -> AiffTextChunks
fn default() -> AiffTextChunks
Returns the “default value” for a type. Read more
sourceimpl From<AiffTextChunks> for Tag
impl From<AiffTextChunks> for Tag
sourcefn from(input: AiffTextChunks) -> Self
fn from(input: AiffTextChunks) -> Self
Performs the conversion.
sourceimpl PartialEq<AiffTextChunks> for AiffTextChunks
impl PartialEq<AiffTextChunks> for AiffTextChunks
sourcefn eq(&self, other: &AiffTextChunks) -> bool
fn eq(&self, other: &AiffTextChunks) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AiffTextChunks) -> bool
fn ne(&self, other: &AiffTextChunks) -> bool
This method tests for !=.
sourceimpl TagExt for AiffTextChunks
impl TagExt for AiffTextChunks
type Err = LoftyError
type Err = LoftyError
The associated error which can be returned from IO operations
sourcefn dump_to<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>
fn dump_to<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>
Dump the tag to a writer Read more
impl StructuralPartialEq for AiffTextChunks
Auto Trait Implementations
impl RefUnwindSafe for AiffTextChunks
impl Send for AiffTextChunks
impl Sync for AiffTextChunks
impl Unpin for AiffTextChunks
impl UnwindSafe for AiffTextChunks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more