pub struct CliGitConfig {
pub policies: PolicyConfig,
pub concurrency: ConcurrencyConfig,
}Expand description
What:
The complete validated configuration of one repository.
Why:
A repository without a file and a repository with an empty {} file both yield
CliGitConfig::defaults():
a policy that is off unless listed stays off either way.
In TS you’d write (pseudocode):
type CliGitConfig = { policies: PolicyConfig; concurrency: ConcurrencyConfig };Fields§
§policies: PolicyConfigPolicy severities and options.
concurrency: ConcurrencyConfigConcurrent-commit tuning.
Implementations§
Source§impl CliGitConfig
Whole-configuration defaults.
impl CliGitConfig
Whole-configuration defaults.
Sourcepub fn defaults() -> CliGitConfig
pub fn defaults() -> CliGitConfig
What:
Build the configuration of a repository without cli-git.config.jsonc,
which
is also what an empty {} file produces.
Why:
Parsing starts from these values and replaces only what the file states.
In TS you’d write (pseudocode):
static defaults(): CliGitConfig;Trait Implementations§
Source§impl Clone for CliGitConfig
impl Clone for CliGitConfig
Source§impl Debug for CliGitConfig
impl Debug for CliGitConfig
impl Eq for CliGitConfig
Source§impl PartialEq for CliGitConfig
impl PartialEq for CliGitConfig
impl StructuralPartialEq for CliGitConfig
Auto Trait Implementations§
impl Freeze for CliGitConfig
impl RefUnwindSafe for CliGitConfig
impl Send for CliGitConfig
impl Sync for CliGitConfig
impl Unpin for CliGitConfig
impl UnsafeUnpin for CliGitConfig
impl UnwindSafe for CliGitConfig
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