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 { None } } pub static PLATFORM: Stackoverflow = Stackoverflow;