lib: Derive some traits for Link{,s} type
This commit is contained in:
parent
19322b667a
commit
6480fb515c
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@ use std::convert::Into;
|
||||||
|
|
||||||
use libimagstore::store::Entry;
|
use libimagstore::store::Entry;
|
||||||
|
|
||||||
|
#[derive(PartialOrd, Ord, Eq, PartialEq, Clone, Debug)]
|
||||||
pub struct Link {
|
pub struct Link {
|
||||||
link: String
|
link: String
|
||||||
}
|
}
|
||||||
|
@ -14,6 +15,7 @@ impl Link {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Eq, PartialEq, Clone, Debug)]
|
||||||
pub struct Links {
|
pub struct Links {
|
||||||
links: Vec<Link>,
|
links: Vec<Link>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue