schema_org_constants/schemas/
map_property.rs

1/// <https://schema.org/map>
2#[deprecated = "This schema is superseded by <https://schema.org/hasMap>."]
3pub const MAP_PROPERTY_IRI_HTTP: &str = "http://schema.org/map";
4/// <https://schema.org/map>
5#[deprecated = "This schema is superseded by <https://schema.org/hasMap>."]
6pub const MAP_PROPERTY_IRI_HTTPS: &str = "https://schema.org/map";
7/// <https://schema.org/map>
8#[deprecated = "This schema is superseded by <https://schema.org/hasMap>."]
9pub const MAP_PROPERTY_LABEL: &str = "map";
10pub struct MapPropertyIri;
11impl PartialEq<&str> for MapPropertyIri {
12	fn eq(&self, other: &&str) -> bool {
13		*other == MAP_PROPERTY_IRI_HTTP || *other == MAP_PROPERTY_IRI_HTTPS
14	}
15}
16impl PartialEq<MapPropertyIri> for &str {
17	fn eq(&self, other: &MapPropertyIri) -> bool {
18		*self == MAP_PROPERTY_IRI_HTTP || *self == MAP_PROPERTY_IRI_HTTPS
19	}
20}
21pub struct MapPropertyIriOrLabel;
22impl PartialEq<&str> for MapPropertyIriOrLabel {
23	fn eq(&self, other: &&str) -> bool {
24		*other == MapPropertyIri || *other == MAP_PROPERTY_LABEL
25	}
26}
27impl PartialEq<MapPropertyIriOrLabel> for &str {
28	fn eq(&self, other: &MapPropertyIriOrLabel) -> bool {
29		*self == MapPropertyIri || *self == MAP_PROPERTY_LABEL
30	}
31}