pub struct MockExecResult {
pub last_insert_id: u64,
pub rows_affected: u64,
}Available on crate feature
mock only.Expand description
Canned ExecResult-equivalent returned by a
MockDatabase for non-SELECT statements.
Fieldsยง
ยงlast_insert_id: u64Value reported by ExecResult::last_insert_id.
rows_affected: u64Value reported by ExecResult::rows_affected.
Trait Implementationsยง
Sourceยงimpl Clone for MockExecResult
impl Clone for MockExecResult
Sourceยงfn clone(&self) -> MockExecResult
fn clone(&self) -> MockExecResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท 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 UnsafeUnpin for MockExecResult
impl UnwindSafe for MockExecResult
Blanket Implementationsยง
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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