pub struct RetirementRequest<'a> {
pub root: &'a Path,
pub workspaces: &'a [WorkspaceInfo],
pub sites: Vec<RetirementSiteInput>,
pub in_scope: &'a dyn Fn(&Path) -> bool,
pub whole_project: bool,
pub age_mode: FlagAgeMode,
pub cache_dir: Option<&'a Path>,
pub progress: Option<&'a (dyn Fn(PickaxeProgress) + Sync)>,
pub vendor_export: Option<&'a VendorExport>,
pub vendor_key_prefix: Option<&'a str>,
pub max_flag_age: Option<u64>,
pub options: RetirementOptions,
}Expand description
Inputs of one retirement report.
Fields§
§root: &'a PathProject root. Paths in the report are relative to it.
workspaces: &'a [WorkspaceInfo]Workspaces of the project, for the flag identity.
sites: Vec<RetirementSiteInput>Every flag site of the project, also outside the scope of the run.
in_scope: &'a dyn Fn(&Path) -> boolWhether a file is in the scope of the run.
whole_project: boolWhether the run covers the whole project. Only such a run adds
vendor-only rows.
age_mode: FlagAgeModeHow to measure flag age.
cache_dir: Option<&'a Path>Directory for the age cache, or None to run without the cache.
progress: Option<&'a (dyn Fn(PickaxeProgress) + Sync)>Receives pickaxe progress.
vendor_export: Option<&'a VendorExport>The --flag-state export, if any.
vendor_key_prefix: Option<&'a str>flags.vendorKeyPrefix.
max_flag_age: Option<u64>--max-flag-age, in days.
options: RetirementOptionsFilters, order and limit of the rows.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RetirementRequest<'a>
impl<'a> !Send for RetirementRequest<'a>
impl<'a> !Sync for RetirementRequest<'a>
impl<'a> !UnwindSafe for RetirementRequest<'a>
impl<'a> Freeze for RetirementRequest<'a>
impl<'a> Unpin for RetirementRequest<'a>
impl<'a> UnsafeUnpin for RetirementRequest<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more