reactive_graph_std_random_model/entity/
random_string.rs1use crate::NAMESPACE_RANDOM;
2use reactive_graph_behaviour_model_api::behaviour_ty;
3use reactive_graph_behaviour_model_api::entity_behaviour_ty;
4use reactive_graph_graph::entity_ty;
5use reactive_graph_graph::properties;
6use reactive_graph_reactive_model_api::entity_model;
7use reactive_graph_runtime_model::Action;
8use reactive_graph_std_result_model::ResultString;
9
10properties!(RandomStringProperties, (LENGTH, "length", 10));
11
12entity_ty!(ENTITY_TYPE_RANDOM_STRING, NAMESPACE_RANDOM, ENTITY_TYPE_NAME_RANDOM_STRING, "random_string");
13behaviour_ty!(BEHAVIOUR_RANDOM_STRING, NAMESPACE_RANDOM, BEHAVIOUR_NAME_RANDOM_STRING, "random_string");
14entity_behaviour_ty!(ENTITY_BEHAVIOUR_RANDOM_STRING, ENTITY_TYPE_RANDOM_STRING, BEHAVIOUR_RANDOM_STRING);
15
16entity_model!(
17 RandomString,
18 set length u64
19);
20impl Action for RandomString {}
21impl ResultString for RandomString {}