Skip to content

Commit

Permalink
add serialization support for struct suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
auxo committed Feb 7, 2022
1 parent 74d39c1 commit 402d9c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/suggestion.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 402d9c1

Please sign in to comment.