shapes_converter/shex_to_uml/
uml_link.rs

1use super::{Name, NodeId, UmlCardinality};
2
3#[derive(Debug, PartialEq)]
4pub struct UmlLink {
5    pub source: NodeId,
6    pub target: NodeId,
7    pub name: Name,
8    pub card: UmlCardinality,
9}
10
11impl UmlLink {
12    pub fn new(source: NodeId, target: NodeId, name: Name, card: UmlCardinality) -> UmlLink {
13        UmlLink {
14            source,
15            target,
16            name,
17            card,
18        }
19    }
20}