#[non_exhaustive]pub struct ExecuteResult {
pub rows_affected: u64,
pub output_params: Vec<OutputParam>,
}Expand description
Result of a non-query execution.
Contains the number of affected rows and any output parameters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.rows_affected: u64Number of rows affected by the statement.
output_params: Vec<OutputParam>Output parameters from stored procedures.
Implementations§
Source§impl ExecuteResult
impl ExecuteResult
Sourcepub fn with_outputs(rows_affected: u64, output_params: Vec<OutputParam>) -> Self
pub fn with_outputs(rows_affected: u64, output_params: Vec<OutputParam>) -> Self
Create a result with output parameters.
Sourcepub fn get_output(&self, name: &str) -> Option<&OutputParam>
pub fn get_output(&self, name: &str) -> Option<&OutputParam>
Get an output parameter by name.
Trait Implementations§
Source§impl Clone for ExecuteResult
impl Clone for ExecuteResult
Source§fn clone(&self) -> ExecuteResult
fn clone(&self) -> ExecuteResult
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 moreAuto Trait Implementations§
impl Freeze for ExecuteResult
impl RefUnwindSafe for ExecuteResult
impl Send for ExecuteResult
impl Sync for ExecuteResult
impl Unpin for ExecuteResult
impl UnsafeUnpin for ExecuteResult
impl UnwindSafe for ExecuteResult
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