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