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
sourceimpl Debug for BadCommitsConfig
impl Debug for BadCommitsConfig
sourceimpl<'de> Deserialize<'de> for BadCommitsConfig
impl<'de> Deserialize<'de> for BadCommitsConfig
sourcefn 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
sourceimpl IntoCheck for BadCommitsConfig
impl IntoCheck for BadCommitsConfig
type Check = BadCommits
type Check = BadCommits
The check parsed by this configuration.
sourcefn 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more