Added several new types
This commit is contained in:
parent
0280f02bc0
commit
58c8f8d356
45 changed files with 1496 additions and 1 deletions
25
src/v1/schemas/galaxy_cluster_relation_list.rs
Normal file
25
src/v1/schemas/galaxy_cluster_relation_list.rs
Normal file
|
@ -0,0 +1,25 @@
|
|||
use super::GalaxyElement;
|
||||
|
||||
|
||||
default_derive!{
|
||||
pub struct GalaxyClusterRelationList {
|
||||
elements: Vec<GalaxyElement>
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Vec<GalaxyElement>> for GalaxyClusterRelationList {
|
||||
fn from(value: Vec<GalaxyElement>) -> Self {
|
||||
GalaxyClusterRelationList { elements: value }
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<Vec<GalaxyElement>> for GalaxyClusterRelationList {
|
||||
fn into(self) -> Vec<GalaxyElement> {
|
||||
self.elements
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn valid1() {
|
||||
todo!()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue