use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Gitlab; impl Platform for Gitlab { fn id(&self) -> &'static str { "gitlab" } fn name(&self) -> &'static str { "GitLab" } fn category(&self) -> Category { Category::Dev } fn domains(&self) -> &'static [&'static str] { &["gitlab.com", "gitlab.io", "gitlab.cn"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Gitlab = Gitlab;