schema_org_traits/schemas/properties/
preparation_property.rs1pub trait GetPreparationProperty {
3 type IdType;
4 type PropertyType;
5 fn get_preparation_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::GetPreparationProperty 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_preparation_property(&self, id: &Self::IdType) -> Vec<&Self::PropertyType> {
15 self.get_property(
16 id,
17 match self.namespace() {
18 SchemaOrgNamespace::Http => schema_org_constants::PREPARATION_PROPERTY_IRI_HTTP,
19 SchemaOrgNamespace::Https => {
20 schema_org_constants::PREPARATION_PROPERTY_IRI_HTTPS
21 }
22 },
23 )
24 }
25 }
26}
27#[cfg(any(feature = "json-ld_0_16", doc))]
28mod json_ld_0_16 {
29 use schema_org_constants::SchemaOrgNamespace;
30 impl crate::GetPreparationProperty for crate::json_ld_0_16::JsonLdStore {
31 type IdType = json_ld_0_16::ValidId;
32 type PropertyType = rdf_types_0_22::Object;
33 fn get_preparation_property(&self, id: &Self::IdType) -> Vec<&Self::PropertyType> {
34 self.get_property(
35 id,
36 match self.namespace() {
37 SchemaOrgNamespace::Http => schema_org_constants::PREPARATION_PROPERTY_IRI_HTTP,
38 SchemaOrgNamespace::Https => {
39 schema_org_constants::PREPARATION_PROPERTY_IRI_HTTPS
40 }
41 },
42 )
43 }
44 }
45}