schema_org_constants/schemas/
country.rs1pub const COUNTRY_IRI_HTTP: &str = "http://schema.org/Country";
3pub const COUNTRY_IRI_HTTPS: &str = "https://schema.org/Country";
5pub const COUNTRY_LABEL: &str = "Country";
7pub struct CountryIri;
8impl PartialEq<&str> for CountryIri {
9 fn eq(&self, other: &&str) -> bool {
10 *other == COUNTRY_IRI_HTTP || *other == COUNTRY_IRI_HTTPS
11 }
12}
13impl PartialEq<CountryIri> for &str {
14 fn eq(&self, other: &CountryIri) -> bool {
15 *self == COUNTRY_IRI_HTTP || *self == COUNTRY_IRI_HTTPS
16 }
17}
18pub struct CountryIriOrLabel;
19impl PartialEq<&str> for CountryIriOrLabel {
20 fn eq(&self, other: &&str) -> bool {
21 *other == CountryIri || *other == COUNTRY_LABEL
22 }
23}
24impl PartialEq<CountryIriOrLabel> for &str {
25 fn eq(&self, other: &CountryIriOrLabel) -> bool {
26 *self == CountryIri || *self == COUNTRY_LABEL
27 }
28}