Skip to content
Clone
main
28 lines 796 B Rust
use crate::parse::{EmbedRule, Platform};
use crate::Category;
pub struct Amazon;
impl Platform for Amazon {
fn id(&self) -> &'static str {
"amazon"
}
fn name(&self) -> &'static str {
"Amazon"
}
fn category(&self) -> Category {
Category::Ecommerce
}
fn domains(&self) -> &'static [&'static str] {
&["amazon.com", "amazon.co.uk", "amazon.de", "amazon.co.jp", "amazon.cn", "amazon.in", "amazon.fr", "amazon.ca", "amazon.com.au", "amazon.com.mx", "amazon.es", "amazon.it", "amazon.com.br", "amazon.nl", "amazon.sg", "amazon.ae", "amazon.sa", "amazon.se", "amazon.pl", "amazon.com.tr", "amazon.eg", "amzn.to", "amzn.eu"]
}
fn embed_rule(&self) -> Option<EmbedRule> {
None
}
}
pub static PLATFORM: Amazon = Amazon;