Struct git_checks::config::RestrictedPathConfig
source · [−]pub struct RestrictedPathConfig { /* private fields */ }
Expand description
Configuration for the RestrictedPath
check.
The restricted_path
key is a string with the path to the content which should be watched.
The required
key is a boolean which defaults to true
which indicates whether modifying
the path is an error or a warning.
This check is registered as a commit check with the name "restricted_path"
and as a topic
check with the name "restricted_path/topic"
.
Example
{
"restricted_path": "path/to/restricted/content",
"required": false
}
Trait Implementations
sourceimpl Debug for RestrictedPathConfig
impl Debug for RestrictedPathConfig
sourceimpl<'de> Deserialize<'de> for RestrictedPathConfig
impl<'de> Deserialize<'de> for RestrictedPathConfig
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 RestrictedPathConfig
impl IntoCheck for RestrictedPathConfig
type Check = RestrictedPath
type Check = RestrictedPath
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 RestrictedPathConfig
impl Send for RestrictedPathConfig
impl Sync for RestrictedPathConfig
impl Unpin for RestrictedPathConfig
impl UnwindSafe for RestrictedPathConfig
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