pub struct ChangeScopeRequest<'a> {
pub owner: ChangeScopeOwner,
pub global_ref: bool,
pub files: Option<&'a HashSet<PathBuf, FxBuildHasher>>,
pub cache: Option<&'a PackageBaselineCache>,
pub no_package_baselines: bool,
}Expand description
Engine-owned change scope of one run: a global changed-file set or the
per-workspace Git baselines of workspaces.changedSince.
The change-scope inputs of one run.
Fields§
§owner: ChangeScopeOwnerWho owns the scope.
global_ref: boolA global changed-since ref was requested. This is true also when the
ref did not resolve: the run then reports in full scope, and the
package baselines still do not apply.
files: Option<&'a HashSet<PathBuf, FxBuildHasher>>The changed files of the global ref, or a changed-file set that the caller supplied.
cache: Option<&'a PackageBaselineCache>The run-wide memo of the resolved package map. The analyses of one run
share it, so Git resolves each mapped ref once per run. None
resolves the map without a memo.
no_package_baselines: bool--no-package-baselines: this run ignores workspaces.changedSince
and reports every package in full scope, for example to save or gate a
whole-project baseline.
Implementations§
Source§impl ChangeScopeRequest<'_>
impl ChangeScopeRequest<'_>
Sourcepub fn reads_package_baselines(&self, config: &ResolvedConfig) -> bool
pub fn reads_package_baselines(&self, config: &ResolvedConfig) -> bool
Whether ChangeScope::resolve reads workspaces.changedSince for
this request. A surface that discovers workspaces only for the package
map checks this first.
Trait Implementations§
Source§impl<'a> Clone for ChangeScopeRequest<'a>
impl<'a> Clone for ChangeScopeRequest<'a>
Source§fn clone(&self) -> ChangeScopeRequest<'a>
fn clone(&self) -> ChangeScopeRequest<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<'a> Copy for ChangeScopeRequest<'a>
Source§impl<'a> Debug for ChangeScopeRequest<'a>
impl<'a> Debug for ChangeScopeRequest<'a>
Source§impl<'a> Default for ChangeScopeRequest<'a>
impl<'a> Default for ChangeScopeRequest<'a>
Source§fn default() -> ChangeScopeRequest<'a>
fn default() -> ChangeScopeRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for ChangeScopeRequest<'a>
impl<'a> RefUnwindSafe for ChangeScopeRequest<'a>
impl<'a> Send for ChangeScopeRequest<'a>
impl<'a> Sync for ChangeScopeRequest<'a>
impl<'a> Unpin for ChangeScopeRequest<'a>
impl<'a> UnsafeUnpin for ChangeScopeRequest<'a>
impl<'a> UnwindSafe for ChangeScopeRequest<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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