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/PET>
pub const PET_IRI_HTTP: &str = "http://schema.org/PET";
/// <https://schema.org/PET>
pub const PET_IRI_HTTPS: &str = "https://schema.org/PET";
/// <https://schema.org/PET>
pub const PET_LABEL: &str = "PET";
pub struct PetIri;
impl PartialEq<&str> for PetIri {
	fn eq(&self, other: &&str) -> bool {
		*other == PET_IRI_HTTP || *other == PET_IRI_HTTPS
	}
}
impl PartialEq<PetIri> for &str {
	fn eq(&self, other: &PetIri) -> bool {
		*self == PET_IRI_HTTP || *self == PET_IRI_HTTPS
	}
}
pub struct PetIriOrLabel;
impl PartialEq<&str> for PetIriOrLabel {
	fn eq(&self, other: &&str) -> bool {
		*other == PetIri || *other == PET_LABEL
	}
}
impl PartialEq<PetIriOrLabel> for &str {
	fn eq(&self, other: &PetIriOrLabel) -> bool {
		*self == PetIri || *self == PET_LABEL
	}
}