use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Csdn; impl Platform for Csdn { fn id(&self) -> &'static str { "csdn" } fn name(&self) -> &'static str { "CSDN" } fn category(&self) -> Category { Category::Dev } fn domains(&self) -> &'static [&'static str] { &["csdn.net", "blog.csdn.net"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Csdn = Csdn;