summaryrefslogtreecommitdiffstats
path: root/src/tuice/component/properties.rs
blob: 5b6d6fc16a3f2e0fcbbcc2952cee8cad352ee948 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use enum_dispatch::enum_dispatch;

use crate::tuice::*;

/// A trait that the properties of a [`Component`](super::Component)
/// should implement.
#[enum_dispatch]
pub trait Properties: PartialEq + Clone {}

#[derive(PartialEq, Clone, Debug)]
pub struct DefaultProp;

impl Properties for DefaultProp {}

#[enum_dispatch(Properties)]
#[derive(PartialEq, Clone)]
pub enum Props {
    DefaultProp,
    TextTableProps,
}