Struct sea_orm::InsertResult
source · pub struct InsertResult<A>where
A: ActiveModelTrait,{
pub last_insert_id: <<<A as ActiveModelTrait>::Entity as EntityTrait>::PrimaryKey as PrimaryKeyTrait>::ValueType,
}
Expand description
The result of an INSERT operation on an ActiveModel
Fields§
§last_insert_id: <<<A as ActiveModelTrait>::Entity as EntityTrait>::PrimaryKey as PrimaryKeyTrait>::ValueType
The id performed when AUTOINCREMENT was performed on the PrimaryKey
Trait Implementations§
Auto Trait Implementations§
impl<A> RefUnwindSafe for InsertResult<A>where
<<<A as ActiveModelTrait>::Entity as EntityTrait>::PrimaryKey as PrimaryKeyTrait>::ValueType: RefUnwindSafe,
impl<A> Send for InsertResult<A>
impl<A> Sync for InsertResult<A>where
<<<A as ActiveModelTrait>::Entity as EntityTrait>::PrimaryKey as PrimaryKeyTrait>::ValueType: Sync,
impl<A> Unpin for InsertResult<A>where
<<<A as ActiveModelTrait>::Entity as EntityTrait>::PrimaryKey as PrimaryKeyTrait>::ValueType: Unpin,
impl<A> UnwindSafe for InsertResult<A>where
<<<A as ActiveModelTrait>::Entity as EntityTrait>::PrimaryKey as PrimaryKeyTrait>::ValueType: 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