pub struct HistoryAnswer {
pub records: Vec<EventRecord>,
pub earlier: Option<Seq>,
}Expand description
A slice of the one history, oldest first - the order the ledger wrote them and the order a fold expects. A reader that wants the newest first reverses a list it already has, and a server that reversed it would make the fold the caller’s problem.
Fields§
§records: Vec<EventRecord>§earlier: Option<Seq>Where to ask next to go further back. None means this slice
reaches the first record the city ever wrote.
Trait Implementations§
Source§impl Clone for HistoryAnswer
impl Clone for HistoryAnswer
Source§impl Debug for HistoryAnswer
impl Debug for HistoryAnswer
Source§impl<'de> Deserialize<'de> for HistoryAnswer
impl<'de> Deserialize<'de> for HistoryAnswer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HistoryAnswer
impl PartialEq for HistoryAnswer
Source§impl Serialize for HistoryAnswer
impl Serialize for HistoryAnswer
impl StructuralPartialEq for HistoryAnswer
Auto Trait Implementations§
impl Freeze for HistoryAnswer
impl RefUnwindSafe for HistoryAnswer
impl Send for HistoryAnswer
impl Sync for HistoryAnswer
impl Unpin for HistoryAnswer
impl UnsafeUnpin for HistoryAnswer
impl UnwindSafe for HistoryAnswer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more