chunky-bits 0.2.0

Chunky Bits is simple, unmanaged, distributed HTTP object store tool.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::hash::Hash;

use serde::{
    Deserialize,
    Serialize,
};

use crate::file::{
    hash::AnyHash,
    Location,
};

#[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Serialize, Deserialize)]
pub struct Chunk {
    #[serde(flatten)]
    pub hash: AnyHash,
    pub locations: Vec<Location>,
}