Struct git_checks::config::BadCommitsConfig
source · pub struct BadCommitsConfig { /* private fields */ }
Expand description
Configuration for the BadCommits
check.
The bad_commits
field is required and is a list of strings. Full hashes must be used.
This check is registered as a commit check with the name "bad_commits"
and as a topic
check with the name "bad_commits/topic"
. It is recommended to use the topic variant due
to its better performance.
Example
{
"bad_commits": [
"deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef",
"abadcafeabadcafeabadcafeabadcafeabadcafeabadcafe"
]
}
Trait Implementations§
source§impl Debug for BadCommitsConfig
impl Debug for BadCommitsConfig
source§impl<'de> Deserialize<'de> for BadCommitsConfig
impl<'de> Deserialize<'de> for BadCommitsConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl IntoCheck for BadCommitsConfig
impl IntoCheck for BadCommitsConfig
§type Check = BadCommits
type Check = BadCommits
The check parsed by this configuration.
source§fn into_check(self) -> Self::Check
fn into_check(self) -> Self::Check
Create a new instance of the check from the configuration.
Auto Trait Implementations§
impl RefUnwindSafe for BadCommitsConfig
impl Send for BadCommitsConfig
impl Sync for BadCommitsConfig
impl Unpin for BadCommitsConfig
impl UnwindSafe for BadCommitsConfig
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