pub struct Output {
pub format: OutputFormat,
pub fail_on: FailOn,
pub min_guard_len: Option<usize>,
pub max_dead: Option<usize>,
pub max_dead_ratio: Option<f64>,
}Expand description
[output] — reporting and exit-code policy.
Fields§
§format: OutputFormat§fail_on: FailOn§min_guard_len: Option<usize>Migration trap: min_guard_len moved to [guard] min_len. A value here is
rejected loudly by Config::load so the move is never silent (an ignored
key would revert the guard length to its default).
max_dead: Option<usize>Dead-key budget (ratchet): fail only when the Dead bucket exceeds the cap.
Absolute cap — fail when dead_count > max_dead. Mutually exclusive with
max_dead_ratio. Absent → any dead fails (the historical default).
max_dead_ratio: Option<f64>Dead-key budget as a share of the whole PO universe (0.0–1.0) — fail when
dead_count / total_keys > max_dead_ratio. Mutually exclusive with
max_dead.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
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
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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