Skip to content

Commit

Permalink
docstring for Value
Browse files Browse the repository at this point in the history
  • Loading branch information
jdockerty committed Apr 19, 2024
1 parent f593c69 commit 63b2ef4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ pub enum Operation {
Remove,
}

/// Value for the store, associated to a key.
///
/// This is a simple wrapper around a [`Vec<u8>`] which represent any value that
/// can be (de)serialised into a [`LogEntry`].
///
/// TODO: Can this be represented as a generic, rather than a "new type"?
#[derive(Debug, Clone, Deserialize, Serialize, PartialEq)]
pub struct Value(pub Option<Vec<u8>>);

Expand Down

0 comments on commit 63b2ef4

Please sign in to comment.