From 8abff469dec14452d036b76ac819c00a4330da98 Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Wed, 20 Aug 2025 17:17:56 +0200 Subject: [PATCH] Ref: Vereinheitlicht Feldnamen im `Local`- und `Remote`-Struct. --- src/config.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/config.rs b/src/config.rs index 6683663..55feb3d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -53,19 +53,19 @@ impl Default for General { #[derive(Serialize, Deserialize, Clone)] pub struct Local { /// Typ der lokalen Einbindung (z.B. "nfs") - pub local_mount_type: String, + pub mount_type: String, /// Pfad zur lokalen Einbindung - pub local_mount_path: String, + pub mount_path: String, /// MAC-Adresse des lokalen Geräts - pub local_device_mac: String, + pub device_mac: String, } impl Default for Local { fn default() -> Self { Self { - local_mount_type: "nfs".to_string(), - local_mount_path: "".to_string(), - local_device_mac: "".to_string(), + mount_type: "nfs".to_string(), + mount_path: "".to_string(), + device_mac: "".to_string(), } } } @@ -74,22 +74,22 @@ impl Default for Local { #[derive(Serialize, Deserialize, Clone)] pub struct Remote { /// Typ der Remote-Einbindung (z.B. "webdav") - pub remote_mount_type: String, + pub mount_type: String, /// Pfad zur Remote-Einbindung - pub remote_mount_path: String, + pub mount_path: String, /// Benutzername für Remote-Zugriff - pub remote_username: String, + pub username: String, /// Passwort für Remote-Zugriff - pub remote_password: String, + pub password: String, } impl Default for Remote { fn default() -> Self { Self { - remote_mount_type: "webdav".to_string(), - remote_mount_path: "".to_string(), - remote_username: "".to_string(), - remote_password: "".to_string(), + mount_type: "webdav".to_string(), + mount_path: "".to_string(), + username: "".to_string(), + password: "".to_string(), } } }