pub struct DbRecord { /* private fields */ }Expand description
SQLite representation of a flora Record.
Implementations§
Trait Implementations§
Source§impl PartialEq for DbRecord
Two instances of DbRecord are partially equal if all their fields except id are equal,
and either:
impl PartialEq for DbRecord
Two instances of DbRecord are partially equal if all their fields except id are equal,
and either:
- Both of their
idfields are equal (including if both areNone), or - One of the records’
idfields isNone.
We consider records where one DbRecord is Some and the other is None to be
partially equal to account for a situation where a new record was just inserted into
the database, and we are comparing it to the same record that we got back from the database.
Auto Trait Implementations§
impl Freeze for DbRecord
impl RefUnwindSafe for DbRecord
impl Send for DbRecord
impl Sync for DbRecord
impl Unpin for DbRecord
impl UnsafeUnpin for DbRecord
impl UnwindSafe for DbRecord
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