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