Skip to main content

Config

Struct Config 

Source
pub struct Config {
Show 14 fields pub branch: Option<String>, pub since: Option<String>, pub until: Option<String>, pub no_merges: bool, pub title: Option<String>, pub exclude: Vec<String>, pub groups: Vec<(String, String)>, pub identities: Vec<Vec<String>>, pub use_github: bool, pub detect_affiliation: bool, pub merge_names: bool, pub embed_avatars: bool, pub avatar_size: u32, pub verbose: bool,
}
Expand description

How to read history and resolve identities. Construct with Config::default() and override fields as needed.

Fields§

§branch: Option<String>

Branch or ref to read (default: HEAD).

§since: Option<String>

Only include commits after this date (passed to git log --since).

§until: Option<String>

Only include commits before this date (git log --until).

§no_merges: bool

Skip merge commits.

§title: Option<String>

Override the chart/repository title.

§exclude: Vec<String>

Exclude contributors whose name or login contains any of these strings.

§groups: Vec<(String, String)>

Manual matcher → group mappings (matcher = name, email, or login).

§identities: Vec<Vec<String>>

Manual identity merges: each row is [canonical, alias, …].

§use_github: bool

Query the GitHub API for logins, avatars, and profiles.

§detect_affiliation: bool

Auto-detect affiliations from GitHub profile companies.

§merge_names: bool

Merge identities that share a normalised author name.

§embed_avatars: bool

Download avatars and embed them as data URIs.

§avatar_size: u32

Avatar pixel size to request when embedding.

§verbose: bool

Print progress to stderr.

Trait Implementations§

Source§

impl Clone for Config

Source§

fn clone(&self) -> Config

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Config

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.