misplib/src/v1/schemas/attribute_list.rs

25 lines
397 B
Rust
Raw Normal View History

2023-07-02 20:40:33 +02:00
use super::Attribute;
default_derive!{
pub struct AttributeList {
attrs: Vec<Attribute>
}
}
impl From<Vec<Attribute>> for AttributeList {
fn from(value: Vec<Attribute>) -> Self {
AttributeList { attrs: value }
}
}
impl Into<Vec<Attribute>> for AttributeList {
fn into(self) -> Vec<Attribute> {
self.attrs
}
}
#[test]
fn valid1() {
todo!()
}