Enum below_dump::CommonField
source · pub enum CommonField {
Timestamp,
Datetime,
}Expand description
Fields available to all commands. Each enum represents some semantics and knows how to extract relevant data from a CommonFieldContext.
Variants§
Implementations§
source§impl CommonField
impl CommonField
sourcepub fn get_render_config(&self) -> RenderConfig
pub fn get_render_config(&self) -> RenderConfig
Default RenderConfig for CommonField
source§impl CommonField
impl CommonField
pub fn get_field(&self, ctx: &CommonFieldContext) -> Option<Field>
Trait Implementations§
source§impl Clone for CommonField
impl Clone for CommonField
source§fn clone(&self) -> CommonField
fn clone(&self) -> CommonField
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 Debug for CommonField
impl Debug for CommonField
source§impl EnumIter for CommonField
impl EnumIter for CommonField
source§fn unit_variant_iter() -> Box<dyn Iterator<Item = Self>>
fn unit_variant_iter() -> Box<dyn Iterator<Item = Self>>
Return iterator for unit variants only.
source§fn all_variant_iter() -> Box<dyn Iterator<Item = Self>>
fn all_variant_iter() -> Box<dyn Iterator<Item = Self>>
Return iterator for unit variants as well as nested variants.
source§impl FromStr for CommonField
impl FromStr for CommonField
source§impl PartialEq<CommonField> for CommonField
impl PartialEq<CommonField> for CommonField
source§fn eq(&self, other: &CommonField) -> bool
fn eq(&self, other: &CommonField) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ToString for CommonField
impl ToString for CommonField
impl StructuralPartialEq for CommonField
Auto Trait Implementations§
impl RefUnwindSafe for CommonField
impl Send for CommonField
impl Sync for CommonField
impl Unpin for CommonField
impl UnwindSafe for CommonField
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