diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-10 16:47:40 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-10 16:47:40 +0800 |
| commit | b18749170b6006e53976dbb6df9f59a3b9c34127 (patch) | |
| tree | a0f9288fdc9082e26daab218167da1f54521d32b /mingling_core/src/asset/comp/suggest.rs | |
| parent | 3bb5afcbe01ad16293a66084dc1ad35f3378a833 (diff) | |
Add completion macro infrastructure without logic
Diffstat (limited to 'mingling_core/src/asset/comp/suggest.rs')
| -rw-r--r-- | mingling_core/src/asset/comp/suggest.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mingling_core/src/asset/comp/suggest.rs b/mingling_core/src/asset/comp/suggest.rs index 4e7ce82..55a874f 100644 --- a/mingling_core/src/asset/comp/suggest.rs +++ b/mingling_core/src/asset/comp/suggest.rs @@ -3,6 +3,7 @@ use std::collections::BTreeSet; /// A completion suggestion that tells the shell how to perform completion. /// This can be either a set of specific suggestion items or a request for file completion. #[derive(Debug, Default, Clone, PartialEq, Eq, Hash)] +#[cfg_attr(feature = "general_renderer", derive(serde::Serialize))] pub enum Suggest { /// A set of specific suggestion items for the shell to display. Suggest(BTreeSet<SuggestItem>), @@ -59,6 +60,7 @@ impl std::ops::DerefMut for Suggest { } #[derive(Debug, Clone, PartialEq, Eq, Hash)] +#[cfg_attr(feature = "general_renderer", derive(serde::Serialize))] pub enum SuggestItem { Simple(String), WithDescription(String, String), |
