pub struct Parameter {
pub name: String,
pub value: Option<FilterValue>,
pub mode: ParameterMode,
pub type_hint: Option<String>,
}Expand description
A parameter for a stored procedure or function call.
Fields§
§name: StringParameter name.
value: Option<FilterValue>Parameter value (None for OUT parameters without initial value).
mode: ParameterModeParameter mode (IN, OUT, INOUT).
type_hint: Option<String>Expected type name for OUT parameters.
Implementations§
Source§impl Parameter
impl Parameter
Sourcepub fn input(name: impl Into<String>, value: impl Into<FilterValue>) -> Self
pub fn input(name: impl Into<String>, value: impl Into<FilterValue>) -> Self
Create a new input parameter.
Sourcepub fn inout(name: impl Into<String>, value: impl Into<FilterValue>) -> Self
pub fn inout(name: impl Into<String>, value: impl Into<FilterValue>) -> Self
Create a new input/output parameter.
Sourcepub fn with_type_hint(self, type_name: impl Into<String>) -> Self
pub fn with_type_hint(self, type_name: impl Into<String>) -> Self
Set a type hint for the parameter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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