Re-exports§
pub use attachment::Expectation;
pub use attachment::Field;
pub use attachment::Index;
pub use attachment::KeyValue;
pub use attachment::Type;
pub use error_stack;
pub use context::*;
Modules§
Macros§
- __field
- bail
- Creates a
Report
and returns it asResult
. - ensure
- Ensures
$cond
is met, otherwise return an error. - expect_
field - kv
- Allows one to quickly specify a
KeyValue
pair, optionally using aty:
prefix using the$value
Type
as the key - report
- Creates a
Report
from the given parameters. - ty
Structs§
Traits§
- Attach
Ext - Clear
Result - Context
- Defines the current context of a
Report
. - Into
Context - LogError
- Option
Report - Used to produce
NotFound
reports from anOption
- Report
As - Extends [
error_stack::IntoReport
] to allow an implicitE -> Report<C>
inference - Result
Ext - Extension trait for
Result
to provide context information onReport
s. - Result
Into Context - Thin
Context ThinContext
behaves as anerror_stack::ContextExt
ideally used for zero sized errors or ones that hold a'static
ref/value