fix: make status info structs public and add missing imports
Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
@@ -281,10 +281,36 @@ fn show_status_structured(
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
struct StatusInfo {
|
||||
paths: PathInfo,
|
||||
compression: Vec<CompressionInfo>,
|
||||
meta_plugins: Vec<MetaPluginInfo>,
|
||||
pub struct StatusInfo {
|
||||
pub paths: PathInfo,
|
||||
pub compression: Vec<CompressionInfo>,
|
||||
pub meta_plugins: Vec<MetaPluginInfo>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct PathInfo {
|
||||
pub data: String,
|
||||
pub database: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct CompressionInfo {
|
||||
#[serde(rename = "type")]
|
||||
pub compression_type: String,
|
||||
pub found: bool,
|
||||
pub default: bool,
|
||||
pub binary: String,
|
||||
pub compress: String,
|
||||
pub decompress: String,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct MetaPluginInfo {
|
||||
pub meta_name: String,
|
||||
pub found: bool,
|
||||
pub enabled: bool,
|
||||
pub binary: String,
|
||||
pub args: String,
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user