Struct git_checks::config::SubmoduleWatchConfig
source · pub struct SubmoduleWatchConfig { /* private fields */ }
Expand description
Configuration for the SubmoduleWatch
check.
The reject_additions
and reject_removals
keys are both booleans which default to
false
.
This check is registered as a commit check with the name "submodule_watch"
.
Example
{
"reject_additions": false,
"reject_removals": false
}
Trait Implementations§
source§impl Debug for SubmoduleWatchConfig
impl Debug for SubmoduleWatchConfig
source§impl<'de> Deserialize<'de> for SubmoduleWatchConfig
impl<'de> Deserialize<'de> for SubmoduleWatchConfig
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 SubmoduleWatchConfig
impl IntoCheck for SubmoduleWatchConfig
§type Check = SubmoduleWatch
type Check = SubmoduleWatch
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 SubmoduleWatchConfig
impl Send for SubmoduleWatchConfig
impl Sync for SubmoduleWatchConfig
impl Unpin for SubmoduleWatchConfig
impl UnwindSafe for SubmoduleWatchConfig
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