pub struct Response<E: EntityKind>(pub Vec<(Key, E)>);Expand description
Response
Tuple Fields§
§0: Vec<(Key, E)>Implementations§
Source§impl<E> Response<E>where
E: EntityKind,
impl<E> Response<E>where
E: EntityKind,
pub const fn count(&self) -> u32
pub const fn is_empty(&self) -> bool
pub fn try_key(&self) -> Result<Key, Error>
pub fn keys(&self) -> Vec<Key>
pub fn keys_iter(self) -> impl Iterator<Item = Key>
Sourcepub fn pk(&self) -> Option<E::PrimaryKey>
pub fn pk(&self) -> Option<E::PrimaryKey>
Pk
pub fn try_pk(&self) -> Result<E::PrimaryKey, Error>
pub fn pks(&self) -> Vec<E::PrimaryKey>
pub fn pks_iter(self) -> impl Iterator<Item = E::PrimaryKey>
pub fn try_entity(self) -> Result<E, Error>
pub fn entities(self) -> Vec<E>
pub fn entities_iter(self) -> impl Iterator<Item = E>
pub fn try_view(self) -> Result<E::ViewType, Error>
pub fn views(self) -> Vec<E::ViewType>
pub fn views_iter(self) -> impl Iterator<Item = E::ViewType>
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