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