Enum below_dump::DumpField
source · [−]pub enum DumpField<F: FieldId> {
Common(CommonField),
FieldId(F),
}
Expand description
Generic field for dumping different types of models. It’s either a CommonField or a FieldId that extracts a Field from a given model. It represents a unified interface for dumpable items.
Variants
Common(CommonField)
FieldId(F)
Implementations
pub fn dump_field(
&self,
ctx: &CommonFieldContext,
model: &F::Queriable,
raw: bool,
fixed_width: bool
) -> String
pub fn dump_field_indented(
&self,
ctx: &CommonFieldContext,
model: &F::Queriable,
raw: bool,
fixed_width: bool
) -> String
Trait Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for DumpField<F> where
F: RefUnwindSafe,
impl<F> UnwindSafe for DumpField<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Calls the given closure and return the result. Read more
Calls the given closure on self
.