rudof_lib/
shapes_graph_source.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[derive(Debug, PartialEq, Clone, Default)]
pub enum ShapesGraphSource {
    #[default]
    CurrentData,
    CurrentSchema,
}

impl ShapesGraphSource {
    pub fn new() -> ShapesGraphSource {
        Self::default()
    }

    pub fn current_schema() -> ShapesGraphSource {
        ShapesGraphSource::CurrentSchema
    }

    pub fn current_data() -> ShapesGraphSource {
        ShapesGraphSource::CurrentData
    }
}