use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Alipay; impl Platform for Alipay { fn id(&self) -> &'static str { "alipay" } fn name(&self) -> &'static str { "支付宝" } fn category(&self) -> Category { Category::Ecommerce } fn domains(&self) -> &'static [&'static str] { &["alipay.com", "alipay.cn", "alipayobjects.com"] } fn embed_rule(&self) -> Option { None } } pub static PLATFORM: Alipay = Alipay;