Make tags Clone

This commit is contained in:
Serial 2021-12-19 11:32:20 -05:00
parent 76ee2a55af
commit 9e8a04826b
10 changed files with 11 additions and 11 deletions

View file

@ -5,7 +5,7 @@ use crate::types::tag::TagType;
use std::convert::TryFrom;
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
/// Represents an `APE` tag item
///
/// The restrictions for `APE` lie in the key rather than the value,

View file

@ -46,7 +46,7 @@ macro_rules! impl_accessor {
}
}
#[derive(Default, Debug, PartialEq)]
#[derive(Default, Debug, PartialEq, Clone)]
/// An `APE` tag
///
/// ## Supported file types

View file

@ -25,7 +25,7 @@ macro_rules! impl_accessor {
}
}
#[derive(Default, Debug, PartialEq)]
#[derive(Default, Debug, PartialEq, Clone)]
/// An ID3v1 tag
///
/// ID3v1 is a severely limited format, with each field

View file

@ -54,7 +54,7 @@ macro_rules! impl_accessor {
}
}
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Debug, Clone)]
/// An `ID3v2` tag
///
/// ## Supported file types

View file

@ -10,7 +10,7 @@ use std::io::{Read, Seek, SeekFrom, Write};
use byteorder::BigEndian;
#[cfg(feature = "aiff_text_chunks")]
#[derive(Default)]
#[derive(Default, Clone, Debug, PartialEq)]
/// `AIFF` text chunks
///
/// ## Supported file types

View file

@ -29,7 +29,7 @@ macro_rules! impl_accessor {
}
}
#[derive(Default, Debug, PartialEq)]
#[derive(Default, Debug, PartialEq, Clone)]
/// A RIFF INFO LIST
///
/// ## Supported file types

View file

@ -4,7 +4,7 @@ use std::io::{Read, Seek, SeekFrom};
use byteorder::{BigEndian, ReadBytesExt};
#[derive(Eq, PartialEq, Debug)]
#[derive(Eq, PartialEq, Debug, Clone)]
/// Represents an `MP4` atom identifier
pub enum AtomIdent {
/// A four byte identifier

View file

@ -1,7 +1,7 @@
use crate::logic::mp4::AtomIdent;
use crate::types::picture::Picture;
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
/// Represents an `MP4` atom
pub struct Atom {
pub(crate) ident: AtomIdent,
@ -25,7 +25,7 @@ impl Atom {
}
}
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone)]
/// The data of an atom
///
/// NOTES:

View file

@ -49,7 +49,7 @@ macro_rules! impl_accessor {
}
}
#[derive(Default, PartialEq, Debug)]
#[derive(Default, PartialEq, Debug, Clone)]
/// An MP4 ilst atom
///
/// ## Supported file types

View file

@ -31,7 +31,7 @@ macro_rules! impl_accessor {
}
}
#[derive(Default, PartialEq, Debug)]
#[derive(Default, PartialEq, Debug, Clone)]
/// Vorbis comments
pub struct VorbisComments {
/// An identifier for the encoding software