Ref: Vereinheitlicht Feldnamen im Local- und Remote-Struct.

This commit is contained in:
2025-08-20 17:17:56 +02:00
parent 5abeaae2c6
commit 8abff469de

View File

@@ -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(),
}
}
}