pub enum MetadataLoadStrategy {
Configured(Vec<String>),
MyProjects,
RecentActivity {
days: u32,
},
All,
}Expand description
Strategy for choosing which Jira projects’ metadata to fetch
when building the enricher cache. Different deployments need
different selection logic — a 5-project team wants All, a
1000-project enterprise wants RecentActivity or
Configured so the enricher stays inside the
MAX_ENRICHMENT_PROJECTS budget.
Variants§
Configured(Vec<String>)
Explicit list of project keys (e.g. from app config). Fastest path: skips Jira-side filtering entirely.
MyProjects
Projects the authenticated user has interacted with most
recently. Resolves through Jira’s /project/search?recent=N
(Cloud) or the recent flag on /project (Server/DC).
Best default when the operator hasn’t picked a list.
RecentActivity
Projects with issues updated in the last days. Uses a
JQL search across lastIssueUpdateTime. Picks up
stale-but-still-active projects that MyProjects may miss.
All
Every project the user can read. Errors out (with a
suggestion to switch strategies) if total >
MAX_ENRICHMENT_PROJECTS — loading 1000 projects’
metadata is rarely what anyone wanted.
Trait Implementations§
Source§impl Clone for MetadataLoadStrategy
impl Clone for MetadataLoadStrategy
Source§fn clone(&self) -> MetadataLoadStrategy
fn clone(&self) -> MetadataLoadStrategy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more