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/Person>
pub const PERSON_IRI_HTTP: &str = "http://schema.org/Person";
/// <https://schema.org/Person>
pub const PERSON_IRI_HTTPS: &str = "https://schema.org/Person";
/// <https://schema.org/Person>
pub const PERSON_LABEL: &str = "Person";
pub struct PersonIri;
impl PartialEq<&str> for PersonIri {
	fn eq(&self, other: &&str) -> bool {
		*other == PERSON_IRI_HTTP || *other == PERSON_IRI_HTTPS
	}
}
impl PartialEq<PersonIri> for &str {
	fn eq(&self, other: &PersonIri) -> bool {
		*self == PERSON_IRI_HTTP || *self == PERSON_IRI_HTTPS
	}
}
pub struct PersonIriOrLabel;
impl PartialEq<&str> for PersonIriOrLabel {
	fn eq(&self, other: &&str) -> bool {
		*other == PersonIri || *other == PERSON_LABEL
	}
}
impl PartialEq<PersonIriOrLabel> for &str {
	fn eq(&self, other: &PersonIriOrLabel) -> bool {
		*self == PersonIri || *self == PERSON_LABEL
	}
}