asuran 0.1.6

Deduplicating, encrypting, fast, and tamper evident archive format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::repository::backend::SegmentDescriptor;
use crate::repository::ChunkID;

use serde::{Deserialize, Serialize};

/// Struct containing the various parts of a transaction
#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
pub struct IndexTransaction {
    /// ID of the `Chunk` this transaction refers to
    pub chunk_id: ChunkID,
    /// The location of this `Chunk` on disk
    pub descriptor: SegmentDescriptor,
}