Struct dev_scope::models::prelude::DoctorGroupActionSpec
source · pub struct DoctorGroupActionSpec {
pub name: Option<String>,
pub description: Option<String>,
pub check: DoctorCheckSpec,
pub fix: Option<DoctorFixSpec>,
pub required: bool,
}Expand description
An action is a single step used to check in a group. This is most commonly used to build a
series of tasks for a system, like ruby, python, and databases.
Fields§
§name: Option<String>Name of the “action”. When not provided, it will be the index of the action within the group. This is used when reporting status to the users.
description: Option<String>A description of this specific action, used for information to the users.
check: DoctorCheckSpecThe check run before fix (if provided). A check is used to determine if the fix needs
to be executed, or fail the action if no fix is provided. If a fix is specified, the check
will re-execute to ensure that the fix applied correctly.
fix: Option<DoctorFixSpec>A fix defines how to fix the issue that a check is validating. When provided, will only
run when the check “fails”.
required: boolIf false, the action is allowed to fail and let other actions in the group execute. Defaults
to true.
Trait Implementations§
source§impl Clone for DoctorGroupActionSpec
impl Clone for DoctorGroupActionSpec
source§fn clone(&self) -> DoctorGroupActionSpec
fn clone(&self) -> DoctorGroupActionSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DoctorGroupActionSpec
impl Debug for DoctorGroupActionSpec
source§impl<'de> Deserialize<'de> for DoctorGroupActionSpec
impl<'de> Deserialize<'de> for DoctorGroupActionSpec
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>,
source§impl JsonSchema for DoctorGroupActionSpec
impl JsonSchema for DoctorGroupActionSpec
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moresource§impl PartialEq for DoctorGroupActionSpec
impl PartialEq for DoctorGroupActionSpec
source§fn eq(&self, other: &DoctorGroupActionSpec) -> bool
fn eq(&self, other: &DoctorGroupActionSpec) -> bool
self and other values to be equal, and is used
by ==.