pub struct ViewPreset {
pub top: Option<u32>,
pub min_coverage: Option<f64>,
pub max_coverage: Option<f64>,
pub sort: Option<SortKey>,
pub only_failing: Option<bool>,
pub no_fail: Option<bool>,
pub group_by: Option<GroupKey>,
pub minimal_view: Option<bool>,
}Expand description
Saved view preset (issue #80).
All fields are optional — None means “preset does not assert this
field, defer to CLI / defaults.” Booleans are Option<bool> so the
preset can distinguish “absent” from “explicitly false,” which lets
the CLI layer treat a CLI bool of false as “user didn’t say”
(OR-merge semantics — see apply_preset_to_cli).
Fields§
§top: Option<u32>§min_coverage: Option<f64>§max_coverage: Option<f64>§sort: Option<SortKey>§only_failing: Option<bool>§no_fail: Option<bool>§group_by: Option<GroupKey>§minimal_view: Option<bool>Trait Implementations§
Source§impl Clone for ViewPreset
impl Clone for ViewPreset
Source§fn clone(&self) -> ViewPreset
fn clone(&self) -> ViewPreset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViewPreset
impl Debug for ViewPreset
Source§impl Default for ViewPreset
impl Default for ViewPreset
Source§fn default() -> ViewPreset
fn default() -> ViewPreset
Returns the “default value” for a type. Read more
Source§impl PartialEq for ViewPreset
impl PartialEq for ViewPreset
Source§fn eq(&self, other: &ViewPreset) -> bool
fn eq(&self, other: &ViewPreset) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ViewPreset
Auto Trait Implementations§
impl Freeze for ViewPreset
impl RefUnwindSafe for ViewPreset
impl Send for ViewPreset
impl Sync for ViewPreset
impl Unpin for ViewPreset
impl UnsafeUnpin for ViewPreset
impl UnwindSafe for ViewPreset
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