schema_org_constants/schemas/
provider_mobility_property.rs1pub const PROVIDER_MOBILITY_PROPERTY_IRI_HTTP: &str = "http://schema.org/providerMobility";
3pub const PROVIDER_MOBILITY_PROPERTY_IRI_HTTPS: &str = "https://schema.org/providerMobility";
5pub const PROVIDER_MOBILITY_PROPERTY_LABEL: &str = "providerMobility";
7pub struct ProviderMobilityPropertyIri;
8impl PartialEq<&str> for ProviderMobilityPropertyIri {
9 fn eq(&self, other: &&str) -> bool {
10 *other == PROVIDER_MOBILITY_PROPERTY_IRI_HTTP
11 || *other == PROVIDER_MOBILITY_PROPERTY_IRI_HTTPS
12 }
13}
14impl PartialEq<ProviderMobilityPropertyIri> for &str {
15 fn eq(&self, other: &ProviderMobilityPropertyIri) -> bool {
16 *self == PROVIDER_MOBILITY_PROPERTY_IRI_HTTP
17 || *self == PROVIDER_MOBILITY_PROPERTY_IRI_HTTPS
18 }
19}
20pub struct ProviderMobilityPropertyIriOrLabel;
21impl PartialEq<&str> for ProviderMobilityPropertyIriOrLabel {
22 fn eq(&self, other: &&str) -> bool {
23 *other == ProviderMobilityPropertyIri || *other == PROVIDER_MOBILITY_PROPERTY_LABEL
24 }
25}
26impl PartialEq<ProviderMobilityPropertyIriOrLabel> for &str {
27 fn eq(&self, other: &ProviderMobilityPropertyIriOrLabel) -> bool {
28 *self == ProviderMobilityPropertyIri || *self == PROVIDER_MOBILITY_PROPERTY_LABEL
29 }
30}