mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-04 20:21:35 +02:00
refactor(core): make cfgen struct members public
This commit is contained in:
@@ -59,26 +59,26 @@ impl ApplicationOptions {
|
|||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
||||||
pub struct IdWithIdentifier {
|
pub struct IdWithIdentifier {
|
||||||
kind: ApplicationIdentifier,
|
pub kind: ApplicationIdentifier,
|
||||||
id: String,
|
pub id: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
||||||
pub struct IdWithIdentifierAndComment {
|
pub struct IdWithIdentifierAndComment {
|
||||||
kind: ApplicationIdentifier,
|
pub kind: ApplicationIdentifier,
|
||||||
id: String,
|
pub id: String,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
comment: Option<String>,
|
pub comment: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
||||||
pub struct ApplicationConfiguration {
|
pub struct ApplicationConfiguration {
|
||||||
name: String,
|
pub name: String,
|
||||||
identifier: IdWithIdentifier,
|
pub identifier: IdWithIdentifier,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
options: Option<Vec<ApplicationOptions>>,
|
pub options: Option<Vec<ApplicationOptions>>,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
float_identifiers: Option<Vec<IdWithIdentifierAndComment>>,
|
pub float_identifiers: Option<Vec<IdWithIdentifierAndComment>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
#[derive(Clone, Debug, Serialize, Deserialize, JsonSchema)]
|
||||||
|
|||||||
Reference in New Issue
Block a user