pub struct ErrorDef {
pub name: String,
pub rust_path: String,
pub original_rust_path: String,
pub variants: Vec<ErrorVariant>,
pub doc: String,
pub methods: Vec<MethodDef>,
pub binding_excluded: bool,
pub binding_exclusion_reason: Option<String>,
}Expand description
An error type (enum used in Result<T, E>).
Fields§
§name: String§rust_path: String§original_rust_path: String§variants: Vec<ErrorVariant>§doc: String§methods: Vec<MethodDef>Whitelisted introspection methods on the error enum (e.g. status_code,
is_transient, error_type). Only methods explicitly opted in via the
extractor whitelist are populated here — Rust-only ergonomic helpers are
intentionally excluded so backends do not accidentally expose them.
binding_excluded: boolTrue when source metadata explicitly excludes this error type from generated
polyglot binding surfaces (via #[cfg_attr(alef, alef(skip))] or #[doc(hidden)]).
binding_exclusion_reason: Option<String>Human-readable reason for binding_excluded, used in diagnostics.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorDef
impl<'de> Deserialize<'de> for ErrorDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ErrorDef
impl RefUnwindSafe for ErrorDef
impl Send for ErrorDef
impl Sync for ErrorDef
impl Unpin for ErrorDef
impl UnsafeUnpin for ErrorDef
impl UnwindSafe for ErrorDef
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