1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/// <https://schema.org/discount>
pub const DISCOUNT_PROPERTY_IRI_HTTP: &str = "http://schema.org/discount";
/// <https://schema.org/discount>
pub const DISCOUNT_PROPERTY_IRI_HTTPS: &str = "https://schema.org/discount";
/// <https://schema.org/discount>
pub const DISCOUNT_PROPERTY_LABEL: &str = "discount";
pub struct DiscountPropertyIri;
impl PartialEq<&str> for DiscountPropertyIri {
	fn eq(&self, other: &&str) -> bool {
		*other == DISCOUNT_PROPERTY_IRI_HTTP || *other == DISCOUNT_PROPERTY_IRI_HTTPS
	}
}
impl PartialEq<DiscountPropertyIri> for &str {
	fn eq(&self, other: &DiscountPropertyIri) -> bool {
		*self == DISCOUNT_PROPERTY_IRI_HTTP || *self == DISCOUNT_PROPERTY_IRI_HTTPS
	}
}
pub struct DiscountPropertyIriOrLabel;
impl PartialEq<&str> for DiscountPropertyIriOrLabel {
	fn eq(&self, other: &&str) -> bool {
		*other == DiscountPropertyIri || *other == DISCOUNT_PROPERTY_LABEL
	}
}
impl PartialEq<DiscountPropertyIriOrLabel> for &str {
	fn eq(&self, other: &DiscountPropertyIriOrLabel) -> bool {
		*self == DiscountPropertyIri || *self == DISCOUNT_PROPERTY_LABEL
	}
}