Struct jmespath::functions::Signature [] [src]

pub struct Signature {
    pub inputs: Vec<ArgumentType>,
    pub variadic: Option<ArgumentType>,
}

Represents a function's signature.

Fields

Methods

impl Signature
[src]

Creates a new Signature struct.

Validates the arity of a function. If the arity is invalid, a runtime error is returned with the relative position of the error and the expression that was being executed.

Validates the provided function arguments against the signature.

Trait Implementations

impl Clone for Signature
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Signature
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Signature
[src]

impl Debug for Signature
[src]

Formats the value using the given formatter.