Ensured everything is serializing/deserializing to camelCase

This commit is contained in:
quexeky
2024-10-17 17:07:47 +11:00
parent defba511a5
commit 7a95b7f77f
4 changed files with 12 additions and 3 deletions

View File

@ -18,6 +18,7 @@ use std::{
use tauri_plugin_deep_link::DeepLinkExt;
#[derive(Clone, Copy, Serialize)]
#[serde(rename_all="camelCase")]
pub enum AppStatus {
NotConfigured,
SignedOut,
@ -35,6 +36,7 @@ pub struct User {
}
#[derive(Clone, Serialize)]
#[serde(rename_all="camelCase")]
pub struct AppState {
status: AppStatus,
user: Option<User>,