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