shapes_converter/shex_to_uml/
uml_link.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use super::{Name, NodeId, UmlCardinality};

#[derive(Debug, PartialEq)]
pub struct UmlLink {
    pub source: NodeId,
    pub target: NodeId,
    pub name: Name,
    pub card: UmlCardinality,
}

impl UmlLink {
    pub fn new(source: NodeId, target: NodeId, name: Name, card: UmlCardinality) -> UmlLink {
        UmlLink {
            source,
            target,
            name,
            card,
        }
    }
}