ciruela 0.6.12

A peer-to-peer synchronization software for servers in datacenters.
Documentation
use std::collections::BTreeMap;

use proto::{Request, Response, Hash};
use database::signatures::State;
use {VPath};


#[derive(Serialize, Deserialize, Debug)]
pub struct GetBaseDir {
    pub path: VPath,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct GetBaseDirResponse {
    pub config_hash: Hash,
    pub keep_list_hash: Hash,
    pub dirs: BTreeMap<String, State>,
}

#[derive(Serialize, Deserialize, Debug)]
pub struct BaseDirState {
    pub path: VPath,
    pub config_hash: Hash,
    pub keep_list_hash: Hash,
    pub dirs: BTreeMap<String, State>,
}

impl Request for GetBaseDir {
    type Response = GetBaseDirResponse;
    fn type_name(&self) -> &'static str {
        return "GetBaseDir";
    }
}

impl Response for GetBaseDirResponse {
    fn type_name(&self) -> &'static str {
        return "GetBaseDir";
    }
    fn static_type_name() -> &'static str {
        return "GetBaseDir";
    }
}