f323ba1
//! 站点不允许内嵌,渲染成带平台标识的卡片。
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Pubmed;
impl Platform for Pubmed {
fn id(&self) -> &'static str {
"pubmed"
}
fn name(&self) -> &'static str {
"PubMed"
}
fn category(&self) -> Category {
Category::Knowledge
}
fn domains(&self) -> &'static [&'static str] {
&["pubmed.ncbi.nlm.nih.gov", "ncbi.nlm.nih.gov"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
}
pub static PLATFORM: Pubmed = Pubmed;