pub struct MockExecResult {
pub last_insert_id: u64,
pub rows_affected: u64,
}
Available on crate feature
mock
only.Expand description
Defines the results obtained from a MockDatabase
Fieldsยง
ยงlast_insert_id: u64
The last inserted id on auto-increment
rows_affected: u64
The number of rows affected by the database operation
Trait Implementationsยง
Sourceยงimpl Clone for MockExecResult
impl Clone for MockExecResult
Sourceยงfn clone(&self) -> MockExecResult
fn clone(&self) -> MockExecResult
Returns a copy 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 MockExecResult
impl Debug for MockExecResult
Sourceยงimpl Default for MockExecResult
impl Default for MockExecResult
Sourceยงfn default() -> MockExecResult
fn default() -> MockExecResult
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for MockExecResult
impl RefUnwindSafe for MockExecResult
impl Send for MockExecResult
impl Sync for MockExecResult
impl Unpin for MockExecResult
impl UnwindSafe for MockExecResult
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more