pub struct SchemaFunctionDef {
pub name: String,
pub args: Vec<String>,
pub returns: String,
pub body: String,
pub language: String,
pub volatility: Option<String>,
}Expand description
A PL/pgSQL function definition for the schema model.
Fields§
§name: StringFunction name.
args: Vec<String>Function arguments (e.g. "p_id uuid").
returns: StringReturn type.
body: StringFunction body.
language: StringLanguage (default "plpgsql").
volatility: Option<String>Volatility category (VOLATILE, STABLE, IMMUTABLE).
Implementations§
Trait Implementations§
Source§impl Clone for SchemaFunctionDef
impl Clone for SchemaFunctionDef
Source§fn clone(&self) -> SchemaFunctionDef
fn clone(&self) -> SchemaFunctionDef
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 SchemaFunctionDef
impl Debug for SchemaFunctionDef
Source§impl PartialEq for SchemaFunctionDef
impl PartialEq for SchemaFunctionDef
impl StructuralPartialEq for SchemaFunctionDef
Auto Trait Implementations§
impl Freeze for SchemaFunctionDef
impl RefUnwindSafe for SchemaFunctionDef
impl Send for SchemaFunctionDef
impl Sync for SchemaFunctionDef
impl Unpin for SchemaFunctionDef
impl UnsafeUnpin for SchemaFunctionDef
impl UnwindSafe for SchemaFunctionDef
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