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