Struct git_checks::config::InvalidPathsConfig  
source · [−]pub struct InvalidPathsConfig { /* private fields */ }Expand description
Configuration for the InvalidPaths check.
The invalid_characters key is a string containing characters which are not allowed to
appear in paths. By default, its value is "<>:\"|?*" which excludes characters not
allowed in paths on Windows. The allow_space key is a boolean defaulting to false which
specifies whether ASCII space is allowed (whitespace is otherwise disallowed).
This check is registered as a commit check with the name "invalid_paths" and a topic
check with the name "invalid_paths/topic".
Example
{
    "invalid_characters": "<>:\"|?*",
    "allow_space": false
}Trait Implementations
sourceimpl Debug for InvalidPathsConfig
 
impl Debug for InvalidPathsConfig
sourceimpl<'de> Deserialize<'de> for InvalidPathsConfig
 
impl<'de> Deserialize<'de> for InvalidPathsConfig
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 InvalidPathsConfig
 
impl IntoCheck for InvalidPathsConfig
type Check = InvalidPaths
type Check = InvalidPaths
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 InvalidPathsConfig
impl Send for InvalidPathsConfig
impl Sync for InvalidPathsConfig
impl Unpin for InvalidPathsConfig
impl UnwindSafe for InvalidPathsConfig
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