Struct prometheus_parser::Function [−][src]
pub struct Function {
pub name: String,
pub args: Vec<BExpression>,
pub aggregation: Option<Aggregation>,
pub subquery: Option<Subquery>,
pub span: Option<Span>,
}
Expand description
A function call.
Note that function names, arguments, argument types, and return types are not validated.
Fields
name: String
args: Vec<BExpression>
aggregation: Option<Aggregation>
subquery: Option<Subquery>
span: Option<Span>
Implementations
Replaces this Function’s name with the given string
Note that the new name is not validated.
Adds the given expression as new argument to this function
Sets this Function’s aggregation clause
Clears this Function’s aggregation clause, if any
Wraps this function in an Expression
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Function
impl UnwindSafe for Function
Blanket Implementations
Mutably borrows from an owned value. Read more