schema_org_traits/schemas/classes/
perform_action.rs

1/// <https://schema.org/PerformAction>
2pub trait FindPerformActionIds {
3	type IdType;
4	/// <https://schema.org/PerformAction>
5	fn find_perform_action_ids(&self) -> Vec<&Self::IdType>;
6}
7#[cfg(any(feature = "json-ld_0_15", doc))]
8mod json_ld_0_15 {
9	use schema_org_constants::SchemaOrgNamespace;
10	impl super::FindPerformActionIds for crate::json_ld_0_15::JsonLdStore {
11		type IdType = json_ld_0_15::ValidId;
12		fn find_perform_action_ids(&self) -> Vec<&Self::IdType> {
13			self.find_schema(match self.namespace() {
14				SchemaOrgNamespace::Http => schema_org_constants::PERFORM_ACTION_IRI_HTTP,
15				SchemaOrgNamespace::Https => schema_org_constants::PERFORM_ACTION_IRI_HTTPS,
16			})
17		}
18	}
19}
20#[cfg(any(feature = "json-ld_0_16", doc))]
21mod json_ld_0_16 {
22	use schema_org_constants::SchemaOrgNamespace;
23	impl super::FindPerformActionIds for crate::json_ld_0_16::JsonLdStore {
24		type IdType = json_ld_0_16::ValidId;
25		fn find_perform_action_ids(&self) -> Vec<&Self::IdType> {
26			self.find_schema(match self.namespace() {
27				SchemaOrgNamespace::Http => schema_org_constants::PERFORM_ACTION_IRI_HTTP,
28				SchemaOrgNamespace::Https => schema_org_constants::PERFORM_ACTION_IRI_HTTPS,
29			})
30		}
31	}
32}