pub enum FormattingFunction {
Display,
Debug,
}Expand description
Specifies whether to use display or debug formatting for a context or attachment.
This enum is used by handlers to indicate their formatting preference when a context or attachment is displayed as part of an error report. The actual formatting system may or may not respect this preference.
§Variants
Display(default): Use thedisplaymethodDebug: Use thedebugmethod
§Examples
use rootcause_internals::handlers::FormattingFunction;
let display_formatting = FormattingFunction::Display;
let debug_formatting = FormattingFunction::Debug;
// Display is the default
assert_eq!(FormattingFunction::default(), FormattingFunction::Display);Variants§
Display
Prefer display formatting via the display method.
Debug
Prefer debug formatting via the debug method.
Trait Implementations§
Source§impl Clone for FormattingFunction
impl Clone for FormattingFunction
Source§fn clone(&self) -> FormattingFunction
fn clone(&self) -> FormattingFunction
Returns a duplicate 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 FormattingFunction
impl Debug for FormattingFunction
Source§impl Default for FormattingFunction
impl Default for FormattingFunction
Source§fn default() -> FormattingFunction
fn default() -> FormattingFunction
Returns the “default value” for a type. Read more
Source§impl Hash for FormattingFunction
impl Hash for FormattingFunction
Source§impl PartialEq for FormattingFunction
impl PartialEq for FormattingFunction
impl Copy for FormattingFunction
impl Eq for FormattingFunction
impl StructuralPartialEq for FormattingFunction
Auto Trait Implementations§
impl Freeze for FormattingFunction
impl RefUnwindSafe for FormattingFunction
impl Send for FormattingFunction
impl Sync for FormattingFunction
impl Unpin for FormattingFunction
impl UnwindSafe for FormattingFunction
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