pub struct ProcedureResult {
pub outputs: HashMap<String, FilterValue>,
pub return_value: Option<FilterValue>,
pub rows_affected: Option<u64>,
}Expand description
Result from a procedure call with OUT/INOUT parameters.
Fields§
§outputs: HashMap<String, FilterValue>Output parameter values by name.
return_value: Option<FilterValue>Return value (for functions).
rows_affected: Option<u64>Number of rows affected (if applicable).
Implementations§
Source§impl ProcedureResult
impl ProcedureResult
Sourcepub fn get(&self, name: &str) -> Option<&FilterValue>
pub fn get(&self, name: &str) -> Option<&FilterValue>
Get an output parameter value.
Sourcepub fn get_as<T>(&self, name: &str) -> Option<T>where
T: TryFrom<FilterValue>,
pub fn get_as<T>(&self, name: &str) -> Option<T>where
T: TryFrom<FilterValue>,
Get an output parameter as a specific type.
Sourcepub fn return_value(&self) -> Option<&FilterValue>
pub fn return_value(&self) -> Option<&FilterValue>
Get the return value.
Sourcepub fn return_value_as<T>(&self) -> Option<T>where
T: TryFrom<FilterValue>,
pub fn return_value_as<T>(&self) -> Option<T>where
T: TryFrom<FilterValue>,
Get the return value as a specific type.
Trait Implementations§
Source§impl Clone for ProcedureResult
impl Clone for ProcedureResult
Source§fn clone(&self) -> ProcedureResult
fn clone(&self) -> ProcedureResult
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 ProcedureResult
impl Debug for ProcedureResult
Source§impl Default for ProcedureResult
impl Default for ProcedureResult
Source§fn default() -> ProcedureResult
fn default() -> ProcedureResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcedureResult
impl RefUnwindSafe for ProcedureResult
impl Send for ProcedureResult
impl Sync for ProcedureResult
impl Unpin for ProcedureResult
impl UnwindSafe for ProcedureResult
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