//! DOI — 知识 — doi.org, dx.doi.org //! //! doi //! 站点不允许内嵌,渲染成带平台标识的卡片。 use crate::parse::{EmbedRule, Platform}; use crate::Category; /// DOI — 知识 — doi.org, dx.doi.org pub struct Doi; impl Platform for Doi { fn id(&self) -> &'static str { "doi" } fn name(&self) -> &'static str { "DOI" } fn category(&self) -> Category { Category::Knowledge } fn domains(&self) -> &'static [&'static str] { &["doi.org", "dx.doi.org"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Doi = Doi;