novel-cli 0.17.0

A set of tools for downloading novels from the web, manipulating text, and generating EPUB
Documentation
use image::DynamicImage;

#[must_use]
pub struct Novel {
    pub name: String,
    pub author_name: String,
    pub introduction: Option<Vec<String>>,
    pub cover_image: Option<DynamicImage>,
    pub volumes: Vec<Volume>,
}

#[must_use]
pub struct Volume {
    pub title: String,
    pub chapters: Vec<Chapter>,
}

#[must_use]
pub struct Chapter {
    pub id: u32,
    pub title: String,
    pub contents: Option<Vec<Content>>,
}

#[derive(Debug)]
#[must_use]
pub enum Content {
    Text(String),
    Image(DynamicImage),
}