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§
source§impl Debug for RestrictedPathConfig
impl Debug for RestrictedPathConfig
source§impl<'de> Deserialize<'de> for RestrictedPathConfig
impl<'de> Deserialize<'de> for RestrictedPathConfig
source§fn 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
source§impl IntoCheck for RestrictedPathConfig
impl IntoCheck for RestrictedPathConfig
§type Check = RestrictedPath
type Check = RestrictedPath
The check parsed by this configuration.
source§fn 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more