diff --git a/src/suggestion.rs b/src/suggestion.rs index 7b2484f..6420d16 100644 --- a/src/suggestion.rs +++ b/src/suggestion.rs @@ -1,6 +1,7 @@ use std::cmp::Ordering; #[derive(Debug, Clone)] +#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] pub struct Suggestion { pub term: String, pub distance: i64,