Add optional sorted listing of file contents

This commit is contained in:
2023-06-15 23:27:21 +02:00
parent 0f584997f7
commit 11b233b642
9 changed files with 68 additions and 8 deletions

View File

@@ -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 {