pub trait ResponseExt<E: EntityKind> {
// Required methods
fn entities(self) -> Result<Vec<E>, InternalError>;
fn entity(self) -> Result<E, InternalError>;
fn try_entity(self) -> Result<Option<E>, InternalError>;
fn count(self) -> Result<u32, InternalError>;
}Expand description
ResponseExt
Ergonomic helpers for Result<Response<E>, InternalError>.
This trait exists solely to avoid repetitive ? when
working with executor results. It intentionally exposes
a minimal surface.