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