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

@ -7,16 +7,14 @@ use crate::{
use anyhow::{anyhow, Result};
use ordered_float::OrderedFloat;
use parking_lot::{RwLock, RwLockUpgradableReadGuard};
use schemars::JsonSchema;
use std::{
collections::HashMap,
ops::{Deref, DerefMut},
sync::Arc,
};
use ts_rs::TS;
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
#[derive(TS)]
#[ts(export, export_to = "theme/types/")]
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, JsonSchema)]
pub struct FamilyId(usize);
struct Family {