pub enum Detail {
Summary,
Full,
}Expand description
How deep a listing goes.
A level with a published domain rather than a bare truth value, because the
manual publishes both --detail summary and --detail full and publishes a
refusal for a level outside the domain. A truth value cannot carry that
refusal: an unknown word beside it is not a level at all, and the argument
layer would reject it as an unexpected value rather than as a level nobody
offers.
Two levels and not three. The catalogue entries carry exactly two depths, the short field list and the short one plus its extras, so a third name would promise a depth that does not exist behind it.
Variants§
Summary
The fields every form of the listing returns.
Full
Those fields and every extra the catalogue holds.
Implementations§
Source§impl Detail
impl Detail
Sourcepub fn or_default(asked: Option<Self>, fallback: Self) -> bool
pub fn or_default(asked: Option<Self>, fallback: Self) -> bool
The level a command asked for, or the one that command defaults to.
The default belongs to the command and not to the argument type, because the same type serves a listing whose extras a requirement demands and one whose extras cost an extra read nobody asked for.
Trait Implementations§
impl Copy for Detail
impl Eq for Detail
impl StructuralPartialEq for Detail
Auto Trait Implementations§
impl Freeze for Detail
impl RefUnwindSafe for Detail
impl Send for Detail
impl Sync for Detail
impl Unpin for Detail
impl UnsafeUnpin for Detail
impl UnwindSafe for Detail
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.