flash_lso/types/attribute.rs
1use enumset::EnumSetType;
2
3/// Encodes the possible attributes that can be given to a trait
4#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
5#[derive(EnumSetType, Debug)]
6pub enum Attribute {
7 /// If a trait is dynamic then the object it constructs may have additional properties other than the ones specified in the trait
8 Dynamic,
9
10 /// If a trait is external then it requires custom serialization and deserialization support
11 External,
12}