enable easier history session id conversion (#485)

This commit is contained in:
Darren Schroeder 2022-09-19 00:47:16 -05:00 committed by GitHub
parent 3fa87ef1e2
commit 9a6fdd78dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,12 @@ impl Display for HistorySessionId {
}
}
impl From<HistorySessionId> for i64 {
fn from(id: HistorySessionId) -> Self {
id.0
}
}
/// This trait represents additional arbitrary context to be added to a history (optional, see [`HistoryItem`])
pub trait HistoryItemExtraInfo: Serialize + DeserializeOwned + Default + Send {}