main
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct DoubanBook;
impl Platform for DoubanBook {
fn id(&self) -> &'static str {
"douban-book"
}
fn name(&self) -> &'static str {
"豆瓣读书"
}
fn category(&self) -> Category {
Category::Knowledge
}
fn domains(&self) -> &'static [&'static str] {
&["book.douban.com"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
}
pub static PLATFORM: DoubanBook = DoubanBook;