diff options
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), |
