use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Baidu; impl Platform for Baidu { fn id(&self) -> &'static str { "baidu" } fn name(&self) -> &'static str { "百度" } fn category(&self) -> Category { Category::News } fn domains(&self) -> &'static [&'static str] { &["baidu.com", "baidu.cn"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Baidu = Baidu;