torigen_mounter 0.4.2

Core functionality for Torigen, a tool for mounting and managing Tor hidden services.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::generated::{Chapter, ChapterEntry, Manga};
use async_trait::async_trait;

#[async_trait]
pub trait MangaClient {
    async fn get_manga_details(&self, manga_id: &str) -> Result<Manga, String>;
    async fn get_chapters(&self, manga_id: &str) -> Result<Vec<ChapterEntry>, String>;
    async fn get_chapter_details(
        &self,
        manga_id: &str,
        chapter_id: &str,
    ) -> Result<Chapter, String>;
}