pub struct DayScan<E> {
pub events: Vec<(NaiveDate, E)>,
pub unreadable_days: Vec<NaiveDate>,
pub malformed_days: Vec<NaiveDate>,
pub listing_failed: bool,
}Expand description
Result of Ledger::scan_since.
Fields§
§events: Vec<(NaiveDate, E)>Every well-formed event read, oldest day first, with its file’s day.
unreadable_days: Vec<NaiveDate>Days whose file could not be opened or read to the end; their records
may be missing from events.
malformed_days: Vec<NaiveDate>Days with at least one line that did not parse; that record is lost, so a reader that must account for every record cannot trust the sum.
listing_failed: boolThe directory listing failed, so whole days may be missing.
Implementations§
Source§impl<E> DayScan<E>
impl<E> DayScan<E>
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
True when every matching day file was read to the end.
Sourcepub fn is_exact(&self) -> bool
pub fn is_exact(&self) -> bool
Self::is_complete and no malformed line either: every record that
was written is in events.
Trait Implementations§
Auto Trait Implementations§
impl<E> Forget for DayScan<E>
impl<E> Freeze for DayScan<E>
impl<E> Move for DayScan<E>
impl<E> RefUnwindSafe for DayScan<E>
impl<E> Send for DayScan<E>
impl<E> Sync for DayScan<E>
impl<E> Unpin for DayScan<E>
impl<E> UnsafeUnpin for DayScan<E>
impl<E> UnwindSafe for DayScan<E>
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