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§
source§impl Debug for AllowRobotConfig
impl Debug for AllowRobotConfig
source§impl<'de> Deserialize<'de> for AllowRobotConfig
impl<'de> Deserialize<'de> for AllowRobotConfig
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 AllowRobotConfig
impl IntoCheck for AllowRobotConfig
§type Check = AllowRobot
type Check = AllowRobot
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 AllowRobotConfig
impl Send for AllowRobotConfig
impl Sync for AllowRobotConfig
impl Unpin for AllowRobotConfig
impl UnwindSafe for AllowRobotConfig
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