pub struct RulesFileEntry {
pub path: String,
pub optional: bool,
}Expand description
What:
One rules file named by the rulesFile option:
its path inside the repository and whether it may be absent.
Why:
The configuration names several files as an array,
and a gitignored local file must be allowed to be missing
on a fresh clone while a committed shared file must not.
The path is the configuration’s own text, with no comma or ? syntax,
because JSON can already say which file is meant.
In TS you’d write (pseudocode):
type RulesFileEntry = { path: string; optional: boolean };Fields§
§path: StringThe file, relative to the repository’s top level and already checked to stay inside it.
optional: boolWhether the file may be absent; an absent optional file is skipped and an absent required file stops the policy.
Trait Implementations§
Source§impl Clone for RulesFileEntry
impl Clone for RulesFileEntry
Source§impl Debug for RulesFileEntry
impl Debug for RulesFileEntry
impl Eq for RulesFileEntry
Source§impl PartialEq for RulesFileEntry
impl PartialEq for RulesFileEntry
impl StructuralPartialEq for RulesFileEntry
Auto Trait Implementations§
impl Freeze for RulesFileEntry
impl RefUnwindSafe for RulesFileEntry
impl Send for RulesFileEntry
impl Sync for RulesFileEntry
impl Unpin for RulesFileEntry
impl UnsafeUnpin for RulesFileEntry
impl UnwindSafe for RulesFileEntry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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