schema_org_constants/schemas/
in_force.rs

1/// <https://schema.org/InForce>
2pub const IN_FORCE_IRI_HTTP: &str = "http://schema.org/InForce";
3/// <https://schema.org/InForce>
4pub const IN_FORCE_IRI_HTTPS: &str = "https://schema.org/InForce";
5/// <https://schema.org/InForce>
6pub const IN_FORCE_LABEL: &str = "InForce";
7pub struct InForceIri;
8impl PartialEq<&str> for InForceIri {
9	fn eq(&self, other: &&str) -> bool {
10		*other == IN_FORCE_IRI_HTTP || *other == IN_FORCE_IRI_HTTPS
11	}
12}
13impl PartialEq<InForceIri> for &str {
14	fn eq(&self, other: &InForceIri) -> bool {
15		*self == IN_FORCE_IRI_HTTP || *self == IN_FORCE_IRI_HTTPS
16	}
17}
18pub struct InForceIriOrLabel;
19impl PartialEq<&str> for InForceIriOrLabel {
20	fn eq(&self, other: &&str) -> bool {
21		*other == InForceIri || *other == IN_FORCE_LABEL
22	}
23}
24impl PartialEq<InForceIriOrLabel> for &str {
25	fn eq(&self, other: &InForceIriOrLabel) -> bool {
26		*self == InForceIri || *self == IN_FORCE_LABEL
27	}
28}