theme.rs

 1use serde::Deserialize;
 2use vscode_theme::Colors;
 3
 4use crate::vscode::VsCodeTokenColor;
 5
 6#[derive(Deserialize, Debug)]
 7pub struct VsCodeTheme {
 8    #[serde(rename = "$schema")]
 9    #[expect(
10        unused,
11        reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove"
12    )]
13    pub schema: Option<String>,
14    pub name: Option<String>,
15    #[expect(
16        unused,
17        reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove"
18    )]
19    pub author: Option<String>,
20    #[expect(
21        unused,
22        reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove"
23    )]
24    pub maintainers: Option<Vec<String>>,
25    #[serde(rename = "semanticClass")]
26    #[expect(
27        unused,
28        reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove"
29    )]
30    pub semantic_class: Option<String>,
31    #[expect(
32        unused,
33        reason = "This field was found to be unused with serde library bump; it's left as is due to insufficient context on PO's side, but it *may* be fine to remove"
34    )]
35    #[serde(rename = "semanticHighlighting")]
36    pub semantic_highlighting: Option<bool>,
37    pub colors: Colors,
38    #[serde(rename = "tokenColors")]
39    pub token_colors: Vec<VsCodeTokenColor>,
40}