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