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/Duration>
pub const DURATION_IRI_HTTP: &str = "http://schema.org/Duration";
/// <https://schema.org/Duration>
pub const DURATION_IRI_HTTPS: &str = "https://schema.org/Duration";
/// <https://schema.org/Duration>
pub const DURATION_LABEL: &str = "Duration";
pub struct DurationIri;
impl PartialEq<&str> for DurationIri {
	fn eq(&self, other: &&str) -> bool {
		*other == DURATION_IRI_HTTP || *other == DURATION_IRI_HTTPS
	}
}
impl PartialEq<DurationIri> for &str {
	fn eq(&self, other: &DurationIri) -> bool {
		*self == DURATION_IRI_HTTP || *self == DURATION_IRI_HTTPS
	}
}
pub struct DurationIriOrLabel;
impl PartialEq<&str> for DurationIriOrLabel {
	fn eq(&self, other: &&str) -> bool {
		*other == DurationIri || *other == DURATION_LABEL
	}
}
impl PartialEq<DurationIriOrLabel> for &str {
	fn eq(&self, other: &DurationIriOrLabel) -> bool {
		*self == DurationIri || *self == DURATION_LABEL
	}
}