Skip to content
Clone
main
28 lines 485 B Rust
use crate::parse::{EmbedRule, Platform};
use crate::Category;
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<EmbedRule> {
None
}
}
pub static PLATFORM: Doi = Doi;