diff options
author | Vlad Stepanov <8uk.8ak@gmail.com> | 2023-06-15 14:29:40 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-15 10:29:40 +0000 |
commit | 4077c33adfdacaf0ed68657a1955a7b69a78d373 (patch) | |
tree | 432d5c23992388a6c1bd4b11d41785ea00d56905 /atuin-server-database | |
parent | 0c75cfbfda1f991c618fcd00921ac6be99fd03f7 (diff) |
Builder interface for History objects (#933)
* [feature] store env variables in History records
WIP: remove `HistoryWithoutDelete`, add some docstrings, tests
* Create History objects through builders.
Assure in compile-time that all required fields
are set for the given construction scenario
* (from #882) split Cmd::run into subfns
* Update `History` doc
* remove rmp-serde from history
* update warning
---------
Co-authored-by: Conrad Ludgate <conrad.ludgate@truelayer.com>
Diffstat (limited to 'atuin-server-database')
-rw-r--r-- | atuin-server-database/src/models.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/atuin-server-database/src/models.rs b/atuin-server-database/src/models.rs index a95ceba26..7183b1ec7 100644 --- a/atuin-server-database/src/models.rs +++ b/atuin-server-database/src/models.rs @@ -7,6 +7,9 @@ pub struct History { pub hostname: String, pub timestamp: NaiveDateTime, + /// All the data we have about this command, encrypted. + /// + /// Currently this is an encrypted msgpack object, but this may change in the future. pub data: String, pub created_at: NaiveDateTime, @@ -18,6 +21,9 @@ pub struct NewHistory { pub hostname: String, pub timestamp: chrono::NaiveDateTime, + /// All the data we have about this command, encrypted. + /// + /// Currently this is an encrypted msgpack object, but this may change in the future. pub data: String, } |