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