pub struct RoutineParam {
pub name: CompactString,
pub pg_type: CompactString,
pub type_max_length: CompactString,
pub required: bool,
pub is_variadic: bool,
}Expand description
Function parameter
Fields§
§name: CompactStringParameter name
pg_type: CompactStringPostgreSQL type name
type_max_length: CompactStringType with max length info (e.g., “character varying(255)”)
required: boolWhether this parameter is required (no default value)
is_variadic: boolWhether this is a variadic parameter
Implementations§
Source§impl RoutineParam
impl RoutineParam
Sourcepub fn is_text_type(&self) -> bool
pub fn is_text_type(&self) -> bool
Check if this is a text-like parameter
Sourcepub fn is_numeric_type(&self) -> bool
pub fn is_numeric_type(&self) -> bool
Check if this is a numeric parameter
Sourcepub fn is_json_type(&self) -> bool
pub fn is_json_type(&self) -> bool
Check if this is a JSON parameter
Trait Implementations§
Source§impl Clone for RoutineParam
impl Clone for RoutineParam
Source§fn clone(&self) -> RoutineParam
fn clone(&self) -> RoutineParam
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 RoutineParam
impl RefUnwindSafe for RoutineParam
impl Send for RoutineParam
impl Sync for RoutineParam
impl Unpin for RoutineParam
impl UnsafeUnpin for RoutineParam
impl UnwindSafe for RoutineParam
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