schema_org_traits/schemas/properties/
members_property.rs

1/// <https://schema.org/members>
2#[deprecated = "This schema is superseded by <https://schema.org/member>."]
3pub trait GetMembersProperty {
4	type IdType;
5	type PropertyType;
6	/// <https://schema.org/members>
7	#[deprecated = "This schema is superseded by <https://schema.org/member>."]
8	fn get_members_property(&self, id: &Self::IdType) -> Vec<&Self::PropertyType>;
9}
10#[cfg(any(feature = "json-ld_0_15", doc))]
11mod json_ld_0_15 {
12	use schema_org_constants::SchemaOrgNamespace;
13	impl crate::GetMembersProperty for crate::json_ld_0_15::JsonLdStore {
14		type IdType = json_ld_0_15::ValidId;
15		type PropertyType = rdf_types_0_15::Object;
16		fn get_members_property(&self, id: &Self::IdType) -> Vec<&Self::PropertyType> {
17			self.get_property(
18				id,
19				match self.namespace() {
20					SchemaOrgNamespace::Http => schema_org_constants::MEMBERS_PROPERTY_IRI_HTTP,
21					SchemaOrgNamespace::Https => schema_org_constants::MEMBERS_PROPERTY_IRI_HTTPS,
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::GetMembersProperty 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_members_property(&self, id: &Self::IdType) -> Vec<&Self::PropertyType> {
34			self.get_property(
35				id,
36				match self.namespace() {
37					SchemaOrgNamespace::Http => schema_org_constants::MEMBERS_PROPERTY_IRI_HTTP,
38					SchemaOrgNamespace::Https => schema_org_constants::MEMBERS_PROPERTY_IRI_HTTPS,
39				},
40			)
41		}
42	}
43}