pub struct RoutineParameter {
pub name: String,
pub data_type: String,
pub direction: ParameterDirection,
pub default: Option<String>,
}Expand description
One parameter of the routine.
Fields§
§name: StringThe parameter’s name, as Razeri composed it and unquoted — a
dialect that decorates parameter names (T-SQL’s @, Redshift’s
positional $1) applies its own decoration.
Empty where the routine declares a type and no name, which some engines allow and which a renderer must then address by position.
data_type: StringThe parameter’s type, already rendered by this dialect.
direction: ParameterDirectionWhich way the value travels.
default: Option<String>The default expression, where the routine declares one.
Trait Implementations§
Source§impl Clone for RoutineParameter
impl Clone for RoutineParameter
Source§fn clone(&self) -> RoutineParameter
fn clone(&self) -> RoutineParameter
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 RoutineParameter
impl Debug for RoutineParameter
impl Eq for RoutineParameter
Source§impl PartialEq for RoutineParameter
impl PartialEq for RoutineParameter
impl StructuralPartialEq for RoutineParameter
Auto Trait Implementations§
impl Freeze for RoutineParameter
impl RefUnwindSafe for RoutineParameter
impl Send for RoutineParameter
impl Sync for RoutineParameter
impl Unpin for RoutineParameter
impl UnsafeUnpin for RoutineParameter
impl UnwindSafe for RoutineParameter
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