Struct git_checks::config::AllowRobotConfig
source · [−]pub struct AllowRobotConfig { /* private fields */ }
Expand description
Configuration for the AllowRobot
check.
The name
and email
fields are required and are both strings.
This check is registered as a branch check with the name "allow_robot"
.
Example
{
"name": "Robot Name",
"email": "robot@email.invalid"
}
Trait Implementations
sourceimpl Debug for AllowRobotConfig
impl Debug for AllowRobotConfig
sourceimpl<'de> Deserialize<'de> for AllowRobotConfig
impl<'de> Deserialize<'de> for AllowRobotConfig
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 AllowRobotConfig
impl IntoCheck for AllowRobotConfig
type Check = AllowRobot
type Check = AllowRobot
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 AllowRobotConfig
impl Send for AllowRobotConfig
impl Sync for AllowRobotConfig
impl Unpin for AllowRobotConfig
impl UnwindSafe for AllowRobotConfig
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