forked from Plugin-JF-Onkostar/osc-variant
Use traits for catalogues, forms and form entries
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::model::Ordner;
|
||||
use crate::model::{Listable, Ordner};
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
@@ -52,8 +52,8 @@ pub struct PropertyCatalogue {
|
||||
ordner: Ordner,
|
||||
}
|
||||
|
||||
impl PropertyCatalogue {
|
||||
pub fn to_listed_string(&self) -> String {
|
||||
impl Listable for PropertyCatalogue {
|
||||
fn to_listed_string(&self) -> String {
|
||||
format!(
|
||||
"Merkmalskatalog '{}' in Revision '{}'",
|
||||
self.name, self.revision
|
||||
|
||||
Reference in New Issue
Block a user