pub struct Function {
pub name: &'static str,
pub arg_types: &'static [ValueType],
pub variadic: Variadic,
pub return_type: ValueType,
pub experimental: bool,
}Expand description
Function signature definition.
Describes the name, argument types, return type, and variadic behavior of a built-in PromQL function.
Fields§
§name: &'static strFunction name.
arg_types: &'static [ValueType]Argument types (in order).
variadic: VariadicVariadic specification.
return_type: ValueTypeReturn type.
experimental: boolWhether this is an experimental function.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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