schema_org_constants/schemas/
article.rs

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