pub struct Row<E: EntityKind> { /* private fields */ }Expand description
Row
Materialized entity row with explicit identity and payload accessors.
Implementations§
Source§impl<E: EntityKind> Row<E>
impl<E: EntityKind> Row<E>
Sourcepub const fn new(id: Id<E>, entity: E) -> Self
pub const fn new(id: Id<E>, entity: E) -> Self
Construct one row from identity and entity payload.
Sourcepub const fn entity_ref(&self) -> &E
pub const fn entity_ref(&self) -> &E
Borrow this row’s entity payload.
Sourcepub fn into_parts(self) -> (Id<E>, E)
pub fn into_parts(self) -> (Id<E>, E)
Consume and return (id, entity) parts.
Trait Implementations§
impl<E: Eq + EntityKind> Eq for Row<E>
impl<E: EntityKind> ResponseRow for Row<E>
impl<E: EntityKind> StructuralPartialEq for Row<E>
Auto Trait Implementations§
impl<E> Freeze for Row<E>
impl<E> RefUnwindSafe for Row<E>
impl<E> Send for Row<E>
impl<E> Sync for Row<E>
impl<E> Unpin for Row<E>
impl<E> UnsafeUnpin for Row<E>
impl<E> UnwindSafe for Row<E>
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