forked from Plugin-JF-Onkostar/osc-variant
Add optional sorted listing of file contents
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::model::{Listable, Ordner};
|
||||
use crate::model::{Listable, Ordner, Sortable};
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
@@ -61,6 +61,12 @@ impl Listable for PropertyCatalogue {
|
||||
}
|
||||
}
|
||||
|
||||
impl Sortable for PropertyCatalogue {
|
||||
fn sorting_key(&self) -> String {
|
||||
self.name.clone()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct Versions {
|
||||
|
||||
Reference in New Issue
Block a user