pub struct CollectCtx {
pub clock: Arc<dyn Clock + Send + Sync>,
pub store: Arc<Store>,
pub pages: u32,
pub window_days: u32,
}Expand description
Everything a TrendSource needs for one collection pass.
Fields§
§clock: Arc<dyn Clock + Send + Sync>Injected time source (SystemClock in production, MockClock in tests).
store: Arc<Store>Snapshot store to write into.
pages: u32How many pages to pull from paginated endpoints.
window_days: u32How far back “recent” reaches, in days.
Trait Implementations§
Source§impl Clone for CollectCtx
impl Clone for CollectCtx
Source§fn clone(&self) -> CollectCtx
fn clone(&self) -> CollectCtx
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CollectCtx
impl !UnwindSafe for CollectCtx
impl Freeze for CollectCtx
impl Send for CollectCtx
impl Sync for CollectCtx
impl Unpin for CollectCtx
impl UnsafeUnpin for CollectCtx
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