torigen_mounter 0.1.0

Core functionality for Torigen, a tool for mounting and managing Tor hidden services.
Documentation

use serde::{Deserialize, Serialize};


#[derive(Deserialize, Serialize, Debug, Clone)]
pub enum SectionType {
    SingleRowNormal,
    SingleRowLarge,
    DoubleRow,
    DoubleRowLarge,
}

#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct SectionItem {
    pub id: String,
    pub title: String,
    pub image: String,
}

#[derive(Deserialize, Serialize, Debug, Clone)]
pub struct Section {
    pub id: String,
    pub title: String,
    pub items: Vec<SectionItem>,
    pub section_type: SectionType,
    pub contain_more: bool,
}