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§
source§impl Debug for IndexEntry
impl Debug for IndexEntry
source§impl Decodable for IndexEntry
impl Decodable for IndexEntry
source§impl Encodable for IndexEntry
impl Encodable for IndexEntry
source§impl Entry for IndexEntry
impl Entry for IndexEntry
fn kind(&self) -> Kind
source§fn unix_mtime(&self) -> Option<u64>
fn unix_mtime(&self) -> Option<u64>
Return Unix-format mtime if known.
source§fn symlink_target(&self) -> Option<String>
fn symlink_target(&self) -> Option<String>
Target of the symlink, if this is a symlink.