//! CSDN — 开发 — csdn.net, blog.csdn.net //! //! csdn //! 站点不允许内嵌,渲染成带平台标识的卡片。 use crate::parse::{EmbedRule, Platform}; use crate::Category; /// CSDN — 开发 — csdn.net, blog.csdn.net 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;