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