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