pub struct Record<T, R = (), S: Persistence = N, K = i64>{
pub inner: T,
pub relations: R,
/* private fields */
}Expand description
A record wraps a domain object T with metadata and relations.
R: relations (another Record, or tuple, or Vec<Record<_>>)S: persistence state (N, S)K: key type (i64, Uuid, โฆ)
Fieldsยง
ยงinner: Tยงrelations: RImplementationsยง
Sourceยงimpl<T, R, S, K> Record<T, R, S, K>
Common implementation for all records
impl<T, R, S, K> Record<T, R, S, K>
Common implementation for all records
pub fn is_dirty(&self) -> bool
pub fn mark_dirty(&mut self)
Trait Implementationsยง
impl<T: Inner, R: Inner, S: Persistence, K: Clone> InnerRecord for Record<T, R, S, K>
Auto Trait Implementationsยง
impl<T, R, S, K> Freeze for Record<T, R, S, K>
impl<T, R, S, K> RefUnwindSafe for Record<T, R, S, K>
impl<T, R, S, K> Send for Record<T, R, S, K>
impl<T, R, S, K> Sync for Record<T, R, S, K>
impl<T, R, S, K> Unpin for Record<T, R, S, K>
impl<T, R, S, K> UnwindSafe for Record<T, R, S, K>
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