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/Text>
pub const TEXT_IRI_HTTP: &str = "http://schema.org/Text";
/// <https://schema.org/Text>
pub const TEXT_IRI_HTTPS: &str = "https://schema.org/Text";
/// <https://schema.org/Text>
pub const TEXT_LABEL: &str = "Text";
pub struct TextIri;
impl PartialEq<&str> for TextIri {
	fn eq(&self, other: &&str) -> bool {
		*other == TEXT_IRI_HTTP || *other == TEXT_IRI_HTTPS
	}
}
impl PartialEq<TextIri> for &str {
	fn eq(&self, other: &TextIri) -> bool {
		*self == TEXT_IRI_HTTP || *self == TEXT_IRI_HTTPS
	}
}
pub struct TextIriOrLabel;
impl PartialEq<&str> for TextIriOrLabel {
	fn eq(&self, other: &&str) -> bool {
		*other == TextIri || *other == TEXT_LABEL
	}
}
impl PartialEq<TextIriOrLabel> for &str {
	fn eq(&self, other: &TextIriOrLabel) -> bool {
		*self == TextIri || *self == TEXT_LABEL
	}
}