melodium_engine/design/connection.rs
1use melodium_common::descriptor::{Attribuable, Attributes};
2
3#[derive(Clone, Debug)]
4pub enum IO {
5 Sequence(),
6 Treatment(String),
7}
8
9#[derive(Clone, Debug)]
10pub struct Connection {
11 pub output_treatment: IO,
12 pub output_name: String,
13
14 pub input_treatment: IO,
15 pub input_name: String,
16
17 pub attributes: Attributes,
18}
19
20impl Attribuable for Connection {
21 fn attributes(&self) -> &Attributes {
22 &self.attributes
23 }
24}