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