pub struct Response<E: EntityKind>(pub Vec<Row<E>>);Expand description
Response
Materialized query result: ordered (Key, Entity) pairs.
Fully materialized executor output. Pagination, ordering, and filtering are expressed at the intent layer.
Tuple Fields§
§0: Vec<Row<E>>Implementations§
Source§impl<E: EntityKind> Response<E>
impl<E: EntityKind> Response<E>
pub const fn count(&self) -> u32
pub const fn is_empty(&self) -> bool
pub fn require_one(&self) -> Result<(), InternalError>
pub fn require_some(&self) -> Result<(), InternalError>
pub fn row(self) -> Result<Row<E>, InternalError>
pub fn try_row(self) -> Result<Option<Row<E>>, InternalError>
pub fn rows(self) -> Vec<Row<E>> ⓘ
pub fn entity(self) -> Result<E, InternalError>
pub fn try_entity(self) -> Result<Option<E>, InternalError>
pub fn entities(self) -> Vec<E>
pub fn key(&self) -> Option<Key>
pub fn key_strict(self) -> Result<Key, InternalError>
pub fn try_key(self) -> Result<Option<Key>, InternalError>
pub fn keys(&self) -> Vec<Key>
pub fn contains_key(&self, key: &Key) -> bool
pub fn view(self) -> Result<E::ViewType, InternalError>
pub fn try_view(self) -> Result<Option<E::ViewType>, InternalError>
pub fn views(self) -> Vec<E::ViewType>
pub fn first(self) -> Option<Row<E>>
pub fn first_entity(self) -> Option<E>
pub fn first_pk(self) -> Option<E::PrimaryKey>
Trait Implementations§
Source§impl<E: EntityKind> IntoIterator for Response<E>
impl<E: EntityKind> IntoIterator for Response<E>
Auto Trait Implementations§
impl<E> Freeze for Response<E>
impl<E> RefUnwindSafe for Response<E>where
E: RefUnwindSafe,
impl<E> Send for Response<E>where
E: Send,
impl<E> Sync for Response<E>where
E: Sync,
impl<E> Unpin for Response<E>where
E: Unpin,
impl<E> UnwindSafe for Response<E>where
E: UnwindSafe,
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