use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Chinanews; impl Platform for Chinanews { fn id(&self) -> &'static str { "chinanews" } fn name(&self) -> &'static str { "中国新闻网" } fn category(&self) -> Category { Category::News } fn domains(&self) -> &'static [&'static str] { &["chinanews.com", "chinanews.com.cn"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Chinanews = Chinanews;