Skip to content
Clone
f323ba1
30 lines 577 B Rust
//! 站点不允许内嵌,渲染成带平台标识的卡片。
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct P1688;
impl Platform for P1688 {
fn id(&self) -> &'static str {
"1688"
}
fn name(&self) -> &'static str {
"1688"
}
fn category(&self) -> Category {
Category::Ecommerce
}
fn domains(&self) -> &'static [&'static str] {
&["1688.com", "alibaba.com", "alibaba.cn"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
}
pub static PLATFORM: P1688 = P1688;