schema_org_traits/schemas/properties/
result_comment_property.rs

1/// <https://schema.org/resultComment>
2pub trait GetResultCommentProperty {
3	type IdType;
4	type PropertyType;
5	/// <https://schema.org/resultComment>
6	fn get_result_comment_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::GetResultCommentProperty 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_result_comment_property(&self, id: &Self::IdType) -> Vec<&Self::PropertyType> {
15			self.get_property(
16				id,
17				match self.namespace() {
18					SchemaOrgNamespace::Http => {
19						schema_org_constants::RESULT_COMMENT_PROPERTY_IRI_HTTP
20					}
21					SchemaOrgNamespace::Https => {
22						schema_org_constants::RESULT_COMMENT_PROPERTY_IRI_HTTPS
23					}
24				},
25			)
26		}
27	}
28}
29#[cfg(any(feature = "json-ld_0_16", doc))]
30mod json_ld_0_16 {
31	use schema_org_constants::SchemaOrgNamespace;
32	impl crate::GetResultCommentProperty for crate::json_ld_0_16::JsonLdStore {
33		type IdType = json_ld_0_16::ValidId;
34		type PropertyType = rdf_types_0_22::Object;
35		fn get_result_comment_property(&self, id: &Self::IdType) -> Vec<&Self::PropertyType> {
36			self.get_property(
37				id,
38				match self.namespace() {
39					SchemaOrgNamespace::Http => {
40						schema_org_constants::RESULT_COMMENT_PROPERTY_IRI_HTTP
41					}
42					SchemaOrgNamespace::Https => {
43						schema_org_constants::RESULT_COMMENT_PROPERTY_IRI_HTTPS
44					}
45				},
46			)
47		}
48	}
49}