Skip to main content

RDIndex

A RDIndex represents a single rd-index.json file.
It describes the version of the rd-index, creation timestamp, the chunk size used to divide files, and the list of files that compose the index.

Each instance is produced automatically by the SDK when scanning directories.


Structure

pub struct RDIndex {
pub version: u32;
pub created_at: u64;
pub chunk_size: u64;
pub files: Vec<FileEntry>;
}

Properties

PropertyTypeDescription
versionu32Version of the rac-delta protocol used (default is 1)
created_atu64Unix timestamp (ms) when the file was created.
chunk_sizeu64Size of the chunk used to divide files.
filesVec<FileEntry>List of files of the rd-index and its chunks.