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
sourceimpl<F> DumpField<F>where
F: FieldId,
F::Queriable: HasRenderConfigForDump,
impl<F> DumpField<F>where
F: FieldId,
F::Queriable: HasRenderConfigForDump,
pub fn get_render_config(&self) -> RenderConfig
pub fn get_field(
&self,
ctx: &CommonFieldContext,
model: &F::Queriable
) -> Option<Field>
pub fn dump_field(
&self,
ctx: &CommonFieldContext,
model: &F::Queriable,
raw: bool,
fixed_width: bool
) -> String
sourceimpl<F> DumpField<F>where
F: FieldId,
F::Queriable: HasRenderConfigForDump + Recursive,
impl<F> DumpField<F>where
F: FieldId,
F::Queriable: HasRenderConfigForDump + Recursive,
pub fn dump_field_indented(
&self,
ctx: &CommonFieldContext,
model: &F::Queriable,
raw: bool,
fixed_width: bool
) -> String
Trait Implementations
sourceimpl<F: PartialEq + FieldId> PartialEq<DumpField<F>> for DumpField<F>
impl<F: PartialEq + FieldId> PartialEq<DumpField<F>> for DumpField<F>
impl<F: FieldId> StructuralPartialEq for DumpField<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for DumpField<F>where
F: RefUnwindSafe,
impl<F> Send for DumpField<F>where
F: Send,
impl<F> Sync for DumpField<F>where
F: Sync,
impl<F> Unpin for DumpField<F>where
F: Unpin,
impl<F> UnwindSafe for DumpField<F>where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more