schema_org_constants/schemas/
sports_event.rs

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