change Pattern and Pulse serializing strategy.

This commit is contained in:
Vixalie 2025-03-06 14:29:18 +08:00
parent 4dff3486fb
commit 19198d57d9
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ use sled::IVec;
use uuid::Uuid; use uuid::Uuid;
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Pattern { pub struct Pattern {
pub id: Uuid, pub id: Uuid,
pub name: String, pub name: String,

View File

@ -25,6 +25,7 @@ impl Into<(f64, f64)> for CanvasPoint {
} }
#[derive(Debug, Clone, Serialize, Deserialize)] #[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Pulse { pub struct Pulse {
pub order: u32, pub order: u32,
pub id: Uuid, pub id: Uuid,