Struct git_checks::config::RejectBiDiConfig
source · [−]pub struct RejectBiDiConfig { /* private fields */ }
Expand description
Configuration for the RejectBiDi
check.
The allow
key is a boolean as to whether the check should raise an error rather than a
warning. Defaults to false
.
This check is registered as a commit check with the name "reject_bidi"
and a topic check
with the name "reject_bidi/topic"
.
Example
{
"allow": true
}
Trait Implementations
sourceimpl Debug for RejectBiDiConfig
impl Debug for RejectBiDiConfig
sourceimpl<'de> Deserialize<'de> for RejectBiDiConfig
impl<'de> Deserialize<'de> for RejectBiDiConfig
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 RejectBiDiConfig
impl IntoCheck for RejectBiDiConfig
type Check = RejectBiDi
type Check = RejectBiDi
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 RejectBiDiConfig
impl Send for RejectBiDiConfig
impl Sync for RejectBiDiConfig
impl Unpin for RejectBiDiConfig
impl UnwindSafe for RejectBiDiConfig
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