reactive_graph_client/client/types/
mod.rs1use crate::client::ReactiveGraphClient;
2use crate::client::types::components::api::Components;
3use crate::client::types::entities::api::EntityTypes;
4use crate::client::types::flows::api::FlowTypes;
5use crate::client::types::relations::api::RelationTypes;
6use std::sync::Arc;
7
8pub mod common;
9pub mod components;
10pub mod entities;
11pub mod extensions;
12pub mod flows;
13pub mod properties;
14pub mod relations;
15
16pub struct Types {
17 client: Arc<ReactiveGraphClient>,
18}
19
20impl Types {
21 pub fn new(client: Arc<ReactiveGraphClient>) -> Self {
22 Self { client }
23 }
24
25 pub fn components(&self) -> Components {
26 Components::new(self.client.clone())
27 }
28
29 pub fn entities(&self) -> EntityTypes {
30 EntityTypes::new(self.client.clone())
31 }
32
33 pub fn relations(&self) -> RelationTypes {
34 RelationTypes::new(self.client.clone())
35 }
36
37 pub fn flows(&self) -> FlowTypes {
38 FlowTypes::new(self.client.clone())
39 }
40}