Trait StructTableOptions

Source
pub trait StructTableOptions {
    // Required methods
    fn wide_mode(&self) -> bool;
    fn pretty_mode(&self) -> bool;
    fn should_return_field<S: AsRef<str>>(
        &self,
        field: S,
        is_wide_field: bool,
    ) -> bool;
}
Expand description

StructTable output configuration trait

When OutputConfig can not be used you can implement this trait on you structure.

Required Methods§

Source

fn wide_mode(&self) -> bool

Whether to return fields marked as wide-only

Source

fn pretty_mode(&self) -> bool

Whether to serialize values using to_pretty_string

Source

fn should_return_field<S: AsRef<str>>( &self, field: S, is_wide_field: bool, ) -> bool

Whether the attribute should be returned

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§