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: DoctorCheckSpec
The 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: bool
If 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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &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§impl Serialize for DoctorGroupActionSpec
impl Serialize for DoctorGroupActionSpec
impl StructuralPartialEq for DoctorGroupActionSpec
Auto Trait Implementations§
impl Freeze for DoctorGroupActionSpec
impl RefUnwindSafe for DoctorGroupActionSpec
impl Send for DoctorGroupActionSpec
impl Sync for DoctorGroupActionSpec
impl Unpin for DoctorGroupActionSpec
impl UnwindSafe for DoctorGroupActionSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more