Struct conserve::index::IndexEntry

source ·
pub struct IndexEntry {
    pub apath: String,
    pub mtime: Option<u64>,
    pub kind: Kind,
    pub blake2b: Option<String>,
    pub addrs: Vec<Address>,
    pub target: Option<String>,
}
Expand description

Description of one archived file.

This struct is directly encoded/decoded to the json index file.

Fields§

§apath: String

Path of this entry relative to the base of the backup, in apath form.

§mtime: Option<u64>

File modification time, in whole seconds past the Unix epoch.

§kind: Kind

Type of file.

§blake2b: Option<String>

BLAKE2b hash of the entire original file, without salt.

§addrs: Vec<Address>

Blocks holding the file contents.

§target: Option<String>

For symlinks only, the target of the symlink.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize a value using a Decoder.
Serialize a value using an Encoder.
source§

impl Entry for IndexEntry

Return apath relative to the top of the tree.
Return Unix-format mtime if known.
Target of the symlink, if this is a symlink.
Size of the file, if it is a file. None for directories and symlinks.
Hash of the whole file, if it is a file.

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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. 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.