Initial commit
This commit is contained in:
commit
2fd06a5e83
40 changed files with 1354 additions and 0 deletions
25
src/v1/schemas/attribute_list.rs
Normal file
25
src/v1/schemas/attribute_list.rs
Normal file
|
@ -0,0 +1,25 @@
|
|||
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!()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue