src/backup/catalog.rs: derive Clone for DirEntry and DirEntryAttribute
This is needed in order to explicitly clone the values when needed in the catalog shell implementation. Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
c9f002213e
commit
6dba015043
|
@ -53,12 +53,14 @@ impl fmt::Display for CatalogEntryType {
|
|||
///
|
||||
/// The ``attr`` property contain the exact type with type specific
|
||||
/// attributes.
|
||||
#[derive(Clone)]
|
||||
pub struct DirEntry {
|
||||
pub name: Vec<u8>,
|
||||
pub attr: DirEntryAttribute,
|
||||
}
|
||||
|
||||
/// Used to specific additional attributes inside DirEntry
|
||||
#[derive(Clone)]
|
||||
pub enum DirEntryAttribute {
|
||||
Directory { start: u64 },
|
||||
File { size: u64, mtime: u64 },
|
||||
|
|
Loading…
Reference in New Issue