Skip to main content

FunctionEntry

Struct FunctionEntry 

Source
pub struct FunctionEntry {
    pub name: &'static str,
    pub function_type: &'static str,
    pub alias_of: Option<&'static str>,
    pub return_type: Option<&'static str>,
    pub parameters: Vec<String>,
    pub parameter_types: Vec<String>,
    pub varargs: Option<&'static str>,
    pub has_side_effects: Option<bool>,
    pub stability: Option<&'static str>,
}
Expand description

What one row of duckdb_functions() says, before it is turned into values.

Fields§

§name: &'static str

The name as it is written in a query.

§function_type: &'static str

scalar, aggregate or table, which are the three kinds rudb has.

§alias_of: Option<&'static str>

The name this one resolves to, and None for a name that is its own.

§return_type: Option<&'static str>

What the call produces, and None for a table function, whose columns are not one type.

§parameters: Vec<String>

One name per argument, in order.

§parameter_types: Vec<String>

One type per argument, in order, the same length as parameters.

§varargs: Option<&'static str>

The type of the trailing variadic argument, for the names that take one.

§has_side_effects: Option<bool>

Whether calling it twice can give two answers, and None for a table function, which is where upstream leaves this column null.

§stability: Option<&'static str>

How much the engine may reuse a result, and None for a table function.

Trait Implementations§

Source§

impl Clone for FunctionEntry

Source§

fn clone(&self) -> FunctionEntry

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FunctionEntry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for FunctionEntry

Source§

impl PartialEq for FunctionEntry

Source§

fn eq(&self, other: &FunctionEntry) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FunctionEntry

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.