Ref: Vereinheitlicht Feldnamen im Local- und Remote-Struct.
This commit is contained in:
@@ -53,19 +53,19 @@ impl Default for General {
|
|||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Serialize, Deserialize, Clone)]
|
||||||
pub struct Local {
|
pub struct Local {
|
||||||
/// Typ der lokalen Einbindung (z.B. "nfs")
|
/// Typ der lokalen Einbindung (z.B. "nfs")
|
||||||
pub local_mount_type: String,
|
pub mount_type: String,
|
||||||
/// Pfad zur lokalen Einbindung
|
/// Pfad zur lokalen Einbindung
|
||||||
pub local_mount_path: String,
|
pub mount_path: String,
|
||||||
/// MAC-Adresse des lokalen Geräts
|
/// MAC-Adresse des lokalen Geräts
|
||||||
pub local_device_mac: String,
|
pub device_mac: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Local {
|
impl Default for Local {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
local_mount_type: "nfs".to_string(),
|
mount_type: "nfs".to_string(),
|
||||||
local_mount_path: "".to_string(),
|
mount_path: "".to_string(),
|
||||||
local_device_mac: "".to_string(),
|
device_mac: "".to_string(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -74,22 +74,22 @@ impl Default for Local {
|
|||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Serialize, Deserialize, Clone)]
|
||||||
pub struct Remote {
|
pub struct Remote {
|
||||||
/// Typ der Remote-Einbindung (z.B. "webdav")
|
/// Typ der Remote-Einbindung (z.B. "webdav")
|
||||||
pub remote_mount_type: String,
|
pub mount_type: String,
|
||||||
/// Pfad zur Remote-Einbindung
|
/// Pfad zur Remote-Einbindung
|
||||||
pub remote_mount_path: String,
|
pub mount_path: String,
|
||||||
/// Benutzername für Remote-Zugriff
|
/// Benutzername für Remote-Zugriff
|
||||||
pub remote_username: String,
|
pub username: String,
|
||||||
/// Passwort für Remote-Zugriff
|
/// Passwort für Remote-Zugriff
|
||||||
pub remote_password: String,
|
pub password: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Remote {
|
impl Default for Remote {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
remote_mount_type: "webdav".to_string(),
|
mount_type: "webdav".to_string(),
|
||||||
remote_mount_path: "".to_string(),
|
mount_path: "".to_string(),
|
||||||
remote_username: "".to_string(),
|
username: "".to_string(),
|
||||||
remote_password: "".to_string(),
|
password: "".to_string(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user