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§
source§impl<F> DumpField<F>
impl<F> DumpField<F>
pub fn get_render_config(&self) -> RenderConfig
pub fn get_openmetrics_render_config( &self, model: &F::Queriable ) -> Option<RenderOpenMetricsConfigBuilder>
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
pub fn dump_field_openmetrics( &self, key: &str, ctx: &CommonFieldContext, model: &F::Queriable ) -> Option<String>
source§impl<F> DumpField<F>
impl<F> DumpField<F>
pub fn dump_field_indented( &self, ctx: &CommonFieldContext, model: &F::Queriable, raw: bool, fixed_width: bool ) -> String
Trait Implementations§
source§impl<F: PartialEq + FieldId> PartialEq for DumpField<F>
impl<F: PartialEq + FieldId> PartialEq for DumpField<F>
impl<F: FieldId> StructuralPartialEq for DumpField<F>
Auto Trait Implementations§
impl<F> Freeze for DumpField<F>where
F: Freeze,
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§
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