pub enum DumpOptionField<F: FieldId, A: AggField<F>> {
Unit(DumpField<F>),
Agg(A),
}
Expand description
Generic representation of fields accepted by different dump subcommands. Each DumpOptionField is either an aggregation of multiple FieldIds, or a “unit” field which could be either a CommonField or a FieldId.
Variants§
Trait Implementations§
Source§impl<F: Clone + FieldId, A: Clone + AggField<F>> Clone for DumpOptionField<F, A>
impl<F: Clone + FieldId, A: Clone + AggField<F>> Clone for DumpOptionField<F, A>
Source§fn clone(&self) -> DumpOptionField<F, A>
fn clone(&self) -> DumpOptionField<F, A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<F: FieldId + Display, A: AggField<F> + Display> Display for DumpOptionField<F, A>
Used for generating help string that lists all supported fields.
impl<F: FieldId + Display, A: AggField<F> + Display> Display for DumpOptionField<F, A>
Used for generating help string that lists all supported fields.
Source§impl<F: FieldId + FromStr, A: AggField<F> + FromStr> FromStr for DumpOptionField<F, A>
Used by Clap to parse user provided –fields.
impl<F: FieldId + FromStr, A: AggField<F> + FromStr> FromStr for DumpOptionField<F, A>
Used by Clap to parse user provided –fields.
impl<F: FieldId, A: AggField<F>> StructuralPartialEq for DumpOptionField<F, A>
Auto Trait Implementations§
impl<F, A> Freeze for DumpOptionField<F, A>
impl<F, A> RefUnwindSafe for DumpOptionField<F, A>where
A: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, A> Send for DumpOptionField<F, A>
impl<F, A> Sync for DumpOptionField<F, A>
impl<F, A> Unpin for DumpOptionField<F, A>
impl<F, A> UnwindSafe for DumpOptionField<F, A>where
A: UnwindSafe,
F: UnwindSafe,
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