pub enum StructureOptions {
Standalone {
source_field: Option<FieldRef>,
format_args: Format,
},
Transparent(Transparent),
Forward {
source_field: Option<FieldRef>,
field_ref: FieldRef,
field_type: Type,
format_args: Format,
},
}Expand description
The options for this structure in terms of its behavior.
Variants§
Standalone
The structure is a new, standalone error type.
Fields
Transparent(Transparent)
A structure that is transparent over some downstream type.
Forward
A structure that is a forwarder to one of its fields.
Trait Implementations§
Source§impl Clone for StructureOptions
impl Clone for StructureOptions
Source§fn clone(&self) -> StructureOptions
fn clone(&self) -> StructureOptions
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 StructureOptions
impl Debug for StructureOptions
Source§impl Hash for StructureOptions
impl Hash for StructureOptions
Source§impl PartialEq for StructureOptions
impl PartialEq for StructureOptions
impl Eq for StructureOptions
impl StructuralPartialEq for StructureOptions
Auto Trait Implementations§
impl Freeze for StructureOptions
impl RefUnwindSafe for StructureOptions
impl !Send for StructureOptions
impl !Sync for StructureOptions
impl Unpin for StructureOptions
impl UnwindSafe for StructureOptions
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