Struct cassandra_cpp::FunctionMeta
source · pub struct FunctionMeta(_);
Expand description
The metadata for a function
Implementations§
source§impl FunctionMeta
impl FunctionMeta
sourcepub fn fields_iter(&self) -> FieldIterator ⓘ
pub fn fields_iter(&self) -> FieldIterator ⓘ
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.