schema_org_constants/schemas/
exercise_action.rs1pub const EXERCISE_ACTION_IRI_HTTP: &str = "http://schema.org/ExerciseAction";
3pub const EXERCISE_ACTION_IRI_HTTPS: &str = "https://schema.org/ExerciseAction";
5pub const EXERCISE_ACTION_LABEL: &str = "ExerciseAction";
7pub struct ExerciseActionIri;
8impl PartialEq<&str> for ExerciseActionIri {
9 fn eq(&self, other: &&str) -> bool {
10 *other == EXERCISE_ACTION_IRI_HTTP || *other == EXERCISE_ACTION_IRI_HTTPS
11 }
12}
13impl PartialEq<ExerciseActionIri> for &str {
14 fn eq(&self, other: &ExerciseActionIri) -> bool {
15 *self == EXERCISE_ACTION_IRI_HTTP || *self == EXERCISE_ACTION_IRI_HTTPS
16 }
17}
18pub struct ExerciseActionIriOrLabel;
19impl PartialEq<&str> for ExerciseActionIriOrLabel {
20 fn eq(&self, other: &&str) -> bool {
21 *other == ExerciseActionIri || *other == EXERCISE_ACTION_LABEL
22 }
23}
24impl PartialEq<ExerciseActionIriOrLabel> for &str {
25 fn eq(&self, other: &ExerciseActionIriOrLabel) -> bool {
26 *self == ExerciseActionIri || *self == EXERCISE_ACTION_LABEL
27 }
28}