schema_org_traits/schemas/properties/
coach_property.rs1pub trait GetCoachProperty {
3 type IdType;
4 type PropertyType;
5 fn get_coach_property(&self, id: &Self::IdType) -> Vec<&Self::PropertyType>;
7}
8#[cfg(any(feature = "json-ld_0_15", doc))]
9mod json_ld_0_15 {
10 use schema_org_constants::SchemaOrgNamespace;
11 impl crate::GetCoachProperty for crate::json_ld_0_15::JsonLdStore {
12 type IdType = json_ld_0_15::ValidId;
13 type PropertyType = rdf_types_0_15::Object;
14 fn get_coach_property(&self, id: &Self::IdType) -> Vec<&Self::PropertyType> {
15 self.get_property(
16 id,
17 match self.namespace() {
18 SchemaOrgNamespace::Http => schema_org_constants::COACH_PROPERTY_IRI_HTTP,
19 SchemaOrgNamespace::Https => schema_org_constants::COACH_PROPERTY_IRI_HTTPS,
20 },
21 )
22 }
23 }
24}
25#[cfg(any(feature = "json-ld_0_16", doc))]
26mod json_ld_0_16 {
27 use schema_org_constants::SchemaOrgNamespace;
28 impl crate::GetCoachProperty for crate::json_ld_0_16::JsonLdStore {
29 type IdType = json_ld_0_16::ValidId;
30 type PropertyType = rdf_types_0_22::Object;
31 fn get_coach_property(&self, id: &Self::IdType) -> Vec<&Self::PropertyType> {
32 self.get_property(
33 id,
34 match self.namespace() {
35 SchemaOrgNamespace::Http => schema_org_constants::COACH_PROPERTY_IRI_HTTP,
36 SchemaOrgNamespace::Https => schema_org_constants::COACH_PROPERTY_IRI_HTTPS,
37 },
38 )
39 }
40 }
41}