pub struct InsertResult {
pub id: String,
pub internal_id: DocId,
pub created: bool,
}Expand description
Result of a DocEngine::insert call with an auto-generated ID.
Fields§
§id: StringThe auto-generated external document ID.
internal_id: DocIdInternal document ID assigned in the collection.
created: boolTrue if this write inserted a new document key (always true for insert).
Trait Implementations§
Source§impl Clone for InsertResult
impl Clone for InsertResult
Source§fn clone(&self) -> InsertResult
fn clone(&self) -> InsertResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InsertResult
impl Debug for InsertResult
Source§impl PartialEq for InsertResult
impl PartialEq for InsertResult
impl StructuralPartialEq for InsertResult
Auto Trait Implementations§
impl Freeze for InsertResult
impl RefUnwindSafe for InsertResult
impl Send for InsertResult
impl Sync for InsertResult
impl Unpin for InsertResult
impl UnsafeUnpin for InsertResult
impl UnwindSafe for InsertResult
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