schema_org_constants/schemas/
video_object.rs

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