feat: add JsonSchema to gpui

This commit is contained in:
Sergey Onufrienko 2023-06-16 21:36:42 +02:00
parent cfc1856210
commit b45f5f0489
No known key found for this signature in database
GPG key ID: 3299873ECFD30CA3
9 changed files with 90 additions and 35 deletions

View file

@ -3,6 +3,7 @@ mod mouse_region;
#[cfg(debug_assertions)]
use collections::HashSet;
use schemars::JsonSchema;
use serde::Deserialize;
use serde_json::json;
use std::{borrow::Cow, sync::Arc};
@ -99,7 +100,7 @@ pub struct Icon {
pub color: Color,
}
#[derive(Clone, Copy, Default, Debug)]
#[derive(Clone, Copy, Default, Debug, JsonSchema)]
pub struct Border {
pub width: f32,
pub color: Color,