Skip to content
Clone
a47ae83
28 lines 649 B Rust
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Stackoverflow;
impl Platform for Stackoverflow {
fn id(&self) -> &'static str {
"stackoverflow"
}
fn name(&self) -> &'static str {
"Stack Overflow"
}
fn category(&self) -> Category {
Category::Forum
}
fn domains(&self) -> &'static [&'static str] {
&["stackoverflow.com", "stackexchange.com", "superuser.com", "serverfault.com", "askubuntu.com", "mathoverflow.net", "stackapps.com"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
}
pub static PLATFORM: Stackoverflow = Stackoverflow;