reactive_graph_config_model/
instance.rs

1use serde::Deserialize;
2use serde::Serialize;
3
4/// Configuration of the runtime instance.
5#[derive(Debug, Clone, Deserialize, Serialize)]
6pub struct InstanceConfig {
7    /// The name of the instance.
8    pub name: String,
9
10    /// A description text about the instance.
11    pub description: String,
12}
13
14impl Default for InstanceConfig {
15    fn default() -> Self {
16        InstanceConfig {
17            name: String::from("Default"),
18            description: String::from("This is the default instance."),
19        }
20    }
21}