25 lines
478 B
Rust
25 lines
478 B
Rust
|
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!()
|
||
|
}
|