pub struct HealthConfig {
pub policy: Option<String>,
}Expand description
Health policy configuration ([health] in tix.toml; mission
project-issue-health-status-01M3C8HX, WP01 T002/T003).
One key, and that is the design: the only thing a repository chooses about
health is which version of the derivation policy it is on. The vocabulary
and the formula live in the build (crate::health::policy), because changing
either changes what every stored value means — an escalation with its own plan
(C-003), not a line in a config file. A version this build does not implement is
refused at load, by name.
Omitted when absent, so a repository that has never mentioned health gains no
section and a legacy tix.toml round-trips byte-identically.
Fields§
§policy: Option<String>The policy version in force; absent means crate::health::HEALTH_POLICY_VERSION.
Implementations§
Trait Implementations§
Source§impl Clone for HealthConfig
impl Clone for HealthConfig
Source§impl Debug for HealthConfig
impl Debug for HealthConfig
Source§impl Default for HealthConfig
impl Default for HealthConfig
Source§impl<'de> Deserialize<'de> for HealthConfigwhere
HealthConfig: Default,
impl<'de> Deserialize<'de> for HealthConfigwhere
HealthConfig: Default,
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
impl Eq for HealthConfig
Source§impl PartialEq for HealthConfig
impl PartialEq for HealthConfig
Source§impl Serialize for HealthConfig
impl Serialize for HealthConfig
impl StructuralPartialEq for HealthConfig
Auto Trait Implementations§
impl Freeze for HealthConfig
impl RefUnwindSafe for HealthConfig
impl Send for HealthConfig
impl Sync for HealthConfig
impl Unpin for HealthConfig
impl UnsafeUnpin for HealthConfig
impl UnwindSafe for HealthConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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