use crate::{
clock::Clock, git::Push, scoring::PointsBreakdown, state::State, storage::PushHistory,
};
pub struct RenderContext<'a> {
pub push: &'a Push,
pub history: &'a PushHistory<'a>,
pub breakdown: &'a PointsBreakdown,
pub state: &'a State,
pub clock: &'a Clock,
pub pack_thresholds: Vec<u64>,
}
impl<'a> RenderContext<'a> {
pub fn new(
push: &'a Push,
history: &'a PushHistory<'a>,
breakdown: &'a PointsBreakdown,
state: &'a State,
clock: &'a Clock,
pack_thresholds: Vec<u64>,
) -> Self {
Self {
push,
history,
breakdown,
state,
clock,
pack_thresholds,
}
}
}