f323ba1
//! 站点不允许内嵌,渲染成带平台标识的卡片。
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct MiStore;
impl Platform for MiStore {
fn id(&self) -> &'static str {
"mi-store"
}
fn name(&self) -> &'static str {
"小米商城"
}
fn category(&self) -> Category {
Category::Ecommerce
}
fn domains(&self) -> &'static [&'static str] {
&["mi.com", "xiaomiyoupin.com"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
}
pub static PLATFORM: MiStore = MiStore;