pub struct DecisionSet {
pub decisions: Vec<Decision>,
pub errors: Vec<String>,
/* private fields */
}Expand description
Every record of one project, sorted by id, plus the files that failed.
Fields§
§decisions: Vec<Decision>§errors: Vec<String><file>: <reason>, sorted. A failing file contributes no decision.
Implementations§
Source§impl DecisionSet
impl DecisionSet
Sourcepub fn active(&self) -> impl Iterator<Item = &Decision>
pub fn active(&self) -> impl Iterator<Item = &Decision>
Decisions in force: status active and not superseded by another
active decision.
Sourcepub fn effective_status(&self, d: &Decision) -> Status
pub fn effective_status(&self, d: &Decision) -> Status
The effective status of d (an active record named in another active
record’s supersedes reads as superseded).
pub fn get(&self, id: &str) -> Option<&Decision>
Sourcepub fn repo_matches(&self, d: &Decision) -> bool
pub fn repo_matches(&self, d: &Decision) -> bool
Whether d.scope.repos admits this checkout.
Sourcepub fn for_path(&self, rel_path: &str) -> Vec<&Decision>
pub fn for_path(&self, rel_path: &str) -> Vec<&Decision>
Active decisions whose scope covers rel_path, sorted by id.
Sourcepub fn for_symbol(&self, symbol: &str) -> Vec<&Decision>
pub fn for_symbol(&self, symbol: &str) -> Vec<&Decision>
Active decisions whose symbol scope names symbol, sorted by id.
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for DecisionSet
impl Clone for DecisionSet
Source§impl Debug for DecisionSet
impl Debug for DecisionSet
Auto Trait Implementations§
impl Forget for DecisionSet
impl Freeze for DecisionSet
impl Move for DecisionSet
impl RefUnwindSafe for DecisionSet
impl Send for DecisionSet
impl Sync for DecisionSet
impl Unpin for DecisionSet
impl UnsafeUnpin for DecisionSet
impl UnwindSafe for DecisionSet
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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