Enum below_dump::command::DumpOptionField
source · 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 copy 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 + FromStr, A: AggField<F> + FromStr> FromStr for DumpOptionField<F, A>
impl<F: FieldId + FromStr, A: AggField<F> + FromStr> FromStr for DumpOptionField<F, A>
Used by Clap to parse user provided –fields.
source§impl<F: PartialEq + FieldId, A: PartialEq + AggField<F>> PartialEq<DumpOptionField<F, A>> for DumpOptionField<F, A>
impl<F: PartialEq + FieldId, A: PartialEq + AggField<F>> PartialEq<DumpOptionField<F, A>> for DumpOptionField<F, A>
source§fn eq(&self, other: &DumpOptionField<F, A>) -> bool
fn eq(&self, other: &DumpOptionField<F, A>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<F: FieldId + ToString, A: AggField<F> + ToString> ToString for DumpOptionField<F, A>
impl<F: FieldId + ToString, A: AggField<F> + ToString> ToString for DumpOptionField<F, A>
Used for generating help string that lists all supported fields.
impl<F: FieldId, A: AggField<F>> StructuralPartialEq for DumpOptionField<F, A>
Auto Trait Implementations§
impl<F, A> RefUnwindSafe for DumpOptionField<F, A>where A: RefUnwindSafe, F: RefUnwindSafe,
impl<F, A> Send for DumpOptionField<F, A>where A: Send, F: Send,
impl<F, A> Sync for DumpOptionField<F, A>where A: Sync, F: Sync,
impl<F, A> Unpin for DumpOptionField<F, A>where A: Unpin, F: Unpin,
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