pub struct Report { /* private fields */ }Expand description
What a stream said about one venue.
Implementations§
Source§impl Report
impl Report
Sourcepub fn from_records<'a>(
target: Target,
records: impl IntoIterator<Item = &'a LegRecord>,
) -> Result<Self, RerouteReportError>
pub fn from_records<'a>( target: Target, records: impl IntoIterator<Item = &'a LegRecord>, ) -> Result<Self, RerouteReportError>
Build from anything that yields records — a mapped notification stream, a DB read.
pub const fn target(&self) -> &Target
pub const fn sol_usd(&self) -> Option<f64>
Sourcepub fn by_direction(&self) -> impl Iterator<Item = (&Pair, &Direction)>
pub fn by_direction(&self) -> impl Iterator<Item = (&Pair, &Direction)>
Every direction the range priced, which includes those the venue never served — filter
on Direction::present for the venue’s own.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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