Struct discord_cassandra_cpp::FunctionMeta
source · [−]pub struct FunctionMeta(_);
Expand description
The metadata for a function
Implementations
sourceimpl FunctionMeta
impl FunctionMeta
sourcepub fn fields_iter(&self) -> FieldIteratorⓘNotable traits for FieldIteratorimpl Iterator for FieldIterator type Item = Field;
pub fn fields_iter(&self) -> FieldIteratorⓘNotable traits for FieldIteratorimpl Iterator for FieldIterator type Item = Field;
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<()>
pub fn argument(&self, index: usize) -> Result<()>
Gets the function’s argument name and type for the provided index.
sourcepub fn argument_type_by_name(&self, name: &str) -> ConstDataType
pub fn argument_type_by_name(&self, name: &str) -> ConstDataType
Gets the function’s argument and type for the provided name.
sourcepub fn return_type(&self) -> ConstDataType
pub fn return_type(&self) -> ConstDataType
Gets the return type of the function.
sourcepub fn field_by_name(&self, name: &str) -> Value
pub fn field_by_name(&self, name: &str) -> Value
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 RefUnwindSafe for FunctionMeta
impl !Send for FunctionMeta
impl !Sync for FunctionMeta
impl Unpin for FunctionMeta
impl UnwindSafe for FunctionMeta
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more