#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct GraphCacheLimits {
max_source_projections: u32,
max_exact_graphs: u32,
max_selected_indexes_per_graph: u32,
max_derived_products_per_graph: u32,
}
impl GraphCacheLimits {
pub fn new(
max_source_projections: u32,
max_exact_graphs: u32,
max_selected_indexes_per_graph: u32,
max_derived_products_per_graph: u32,
) -> Self {
Self {
max_source_projections,
max_exact_graphs,
max_selected_indexes_per_graph,
max_derived_products_per_graph,
}
}
pub fn max_source_projections(self) -> u32 {
self.max_source_projections
}
pub fn max_exact_graphs(self) -> u32 {
self.max_exact_graphs
}
pub fn max_selected_indexes_per_graph(self) -> u32 {
self.max_selected_indexes_per_graph
}
pub fn max_derived_products_per_graph(self) -> u32 {
self.max_derived_products_per_graph
}
}