Working send and updated account structure

This commit is contained in:
2026-08-20 11:24:59 +02:00
parent 9c448049bc
commit cce9756a1b
8 changed files with 28 additions and 16 deletions
+3 -2
View File
@@ -2,11 +2,12 @@ use serde::{Deserialize, Serialize};
use std::fs;
use tauri::{AppHandle, Manager};
use crate::protocol::ClientMeta;
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Account {
pub display_name: String,
pub avatar: Option<String>,
pub meta: ClientMeta,
pub private_key: String,
}
+6 -1
View File
@@ -3,9 +3,14 @@ use std::borrow::Cow;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ClientMeta {}
#[serde(rename_all = "camelCase")]
pub struct ClientMeta {
pub display_name: String,
pub avatar: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ServerMeta {
pub name: String,
pub description: String,