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