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
sourceimpl Debug for SubmoduleWatchConfig
 
impl Debug for SubmoduleWatchConfig
sourceimpl<'de> Deserialize<'de> for SubmoduleWatchConfig
 
impl<'de> Deserialize<'de> for SubmoduleWatchConfig
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 SubmoduleWatchConfig
 
impl IntoCheck for SubmoduleWatchConfig
type Check = SubmoduleWatch
type Check = SubmoduleWatch
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 SubmoduleWatchConfig
impl Send for SubmoduleWatchConfig
impl Sync for SubmoduleWatchConfig
impl Unpin for SubmoduleWatchConfig
impl UnwindSafe for SubmoduleWatchConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more