Struct gitoxide_core::hours::Context
source · pub struct Context<W> {
pub ignore_bots: bool,
pub show_pii: bool,
pub file_stats: bool,
pub line_stats: bool,
pub threads: Option<usize>,
pub omit_unify_identities: bool,
pub out: W,
}
Available on crate feature
estimate-hours
only.Expand description
Additional configuration for the hours estimation functionality.
Fields§
§ignore_bots: bool
Ignore github bots which match the [bot]
search string.
show_pii: bool
Show personally identifiable information before the summary. Includes names and email addresses.
file_stats: bool
Collect how many files have been added, removed and modified (without rename tracking).
line_stats: bool
Collect how many lines in files have been added, removed and modified (without rename tracking).
threads: Option<usize>
The amount of threads to use. If unset, use all cores, if 0 use al physical cores.
omit_unify_identities: bool
Omit unifying identities by name and email which can lead to the same author appear multiple times due to using different names or email addresses.
out: W
Where to write our output to
Auto Trait Implementations§
impl<W> Freeze for Context<W>where
W: Freeze,
impl<W> RefUnwindSafe for Context<W>where
W: RefUnwindSafe,
impl<W> Send for Context<W>where
W: Send,
impl<W> Sync for Context<W>where
W: Sync,
impl<W> Unpin for Context<W>where
W: Unpin,
impl<W> UnwindSafe for Context<W>where
W: UnwindSafe,
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> 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