pub enum FunctionLanguage {
Sql,
PlPgSql,
C,
Custom(String),
}Expand description
Programming language for function body
Specifies the language in which the function is written.
§Examples
use reinhardt_query::types::function::FunctionLanguage;
let lang = FunctionLanguage::Sql;
let lang = FunctionLanguage::PlPgSql;
let lang = FunctionLanguage::C;
let lang = FunctionLanguage::Custom("plpython3u".to_string());Variants§
Sql
SQL language
PlPgSql
PL/pgSQL (PostgreSQL)
C
C language
Custom(String)
Custom language (extension)
§Security Note
Only use with trusted language names. Do not use with user input.
Trait Implementations§
Source§impl Clone for FunctionLanguage
impl Clone for FunctionLanguage
Source§fn clone(&self) -> FunctionLanguage
fn clone(&self) -> FunctionLanguage
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 FunctionLanguage
impl Debug for FunctionLanguage
Source§impl PartialEq for FunctionLanguage
impl PartialEq for FunctionLanguage
impl Eq for FunctionLanguage
impl StructuralPartialEq for FunctionLanguage
Auto Trait Implementations§
impl Freeze for FunctionLanguage
impl RefUnwindSafe for FunctionLanguage
impl Send for FunctionLanguage
impl Sync for FunctionLanguage
impl Unpin for FunctionLanguage
impl UnsafeUnpin for FunctionLanguage
impl UnwindSafe for FunctionLanguage
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