Struct git_checks::builders::InvalidPathsBuilder
source · [−]pub struct InvalidPathsBuilder { /* private fields */ }
Expand description
Builder for InvalidPaths
.
Implementations
sourceimpl InvalidPathsBuilder
impl InvalidPathsBuilder
sourcepub fn invalid_characters<VALUE: Into<String>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn invalid_characters<VALUE: Into<String>>(
&mut self,
value: VALUE
) -> &mut Self
Characters not allowed within a filename.
In addition to whitespace, control, and non-ASCII characters, which are always disallowed.
Configuration: Optional Default: `String::new()
sourcepub fn allow_space(&mut self, value: bool) -> &mut Self
pub fn allow_space(&mut self, value: bool) -> &mut Self
Allow the space character (ASCII x20)
This allows for exempting
in paths.
Configuration: Optional
Default: false
sourcepub fn enforce_windows_rules(&mut self, value: bool) -> &mut Self
pub fn enforce_windows_rules(&mut self, value: bool) -> &mut Self
Enforce Windows-specific path rules.
This includes a list of reserved names as well as rejecting path components which end in
.
or
(space).
Configuration: Optional
Default: false
sourcepub fn build(&self) -> Result<InvalidPaths, InvalidPathsBuilderError>
pub fn build(&self) -> Result<InvalidPaths, InvalidPathsBuilderError>
Trait Implementations
sourceimpl Clone for InvalidPathsBuilder
impl Clone for InvalidPathsBuilder
sourcefn clone(&self) -> InvalidPathsBuilder
fn clone(&self) -> InvalidPathsBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for InvalidPathsBuilder
impl Send for InvalidPathsBuilder
impl Sync for InvalidPathsBuilder
impl Unpin for InvalidPathsBuilder
impl UnwindSafe for InvalidPathsBuilder
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
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more