As introduced in the description of this PR: https://github.com/impierce/identity-wallet/pull/157#issue-2187559727 in order to make updates to the AppStates history field a bit more ergonomic, we should implement a similar approach to history to what we currently have implemented for connections.
connections changed from a Vec<Connection> to pub struct Connections(Vec<Connection>) including some method implementations.
Similarly we should change pub history: Vec<HistoryEvent> to pub history: History where History:
pub struct History(Vec<HistoryEvent>);
It should have (at least the following) methods implemented:
Description
As introduced in the description of this PR: https://github.com/impierce/identity-wallet/pull/157#issue-2187559727 in order to make updates to the AppStates
history
field a bit more ergonomic, we should implement a similar approach tohistory
to what we currently have implemented forconnections
.connections
changed from aVec<Connection>
topub struct Connections(Vec<Connection>)
including some method implementations.Similarly we should change
pub history: Vec<HistoryEvent>
topub history: History
whereHistory
:It should have (at least the following) methods implemented:
Motivation
Resources
157
To-do List
History
struct