pub struct FunctionMeta<'a>(/* private fields */);
Expand description
The metadata for a function
Implementations§
Source§impl<'a> FunctionMeta<'a>
impl<'a> FunctionMeta<'a>
Sourcepub fn fields_iter(&self) -> FieldIterator<'a>
pub fn fields_iter(&self) -> FieldIterator<'a>
Iterator over the fields in this function.
Sourcepub fn full_name(&self) -> String
pub fn full_name(&self) -> String
Gets the full name of the function. The full name includes the function’s name and the function’s signature: “name(type1 type2.. typeN)”.
Sourcepub fn called_on_null_input(&self) -> bool
pub fn called_on_null_input(&self) -> bool
Gets whether a function is called on “null”.
Sourcepub fn argument_count(&self) -> usize
pub fn argument_count(&self) -> usize
Gets the number of arguments this function takes.
Sourcepub fn argument(&self, index: usize) -> Result<(String, ConstDataType<'a>)>
pub fn argument(&self, index: usize) -> Result<(String, ConstDataType<'a>)>
Gets the function’s argument name and type for the provided index.
Sourcepub fn argument_type_by_name(&self, name: &str) -> ConstDataType<'a>
pub fn argument_type_by_name(&self, name: &str) -> ConstDataType<'a>
Gets the function’s argument and type for the provided name.
Sourcepub fn return_type(&self) -> ConstDataType<'a>
pub fn return_type(&self) -> ConstDataType<'a>
Gets the return type of the function.
Sourcepub fn field_by_name(&self, name: &str) -> Value<'a>
pub fn field_by_name(&self, name: &str) -> Value<'a>
Gets a metadata field for the provided name. Metadata fields allow direct access to the column data found in the underlying “functions” metadata table.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FunctionMeta<'a>
impl<'a> RefUnwindSafe for FunctionMeta<'a>
impl<'a> !Send for FunctionMeta<'a>
impl<'a> !Sync for FunctionMeta<'a>
impl<'a> Unpin for FunctionMeta<'a>
impl<'a> UnwindSafe for FunctionMeta<'a>
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