pub enum ValidPayload<'a> {
    Ok,
    Parser(Parser),
    Func(FuncValidator<ValidatorResources>, FunctionBody<'a>),
    End(Types),
}
Expand description

Possible return values from Validator::payload.

Variants§

§

Ok

The payload validated, no further action need be taken.

§

Parser(Parser)

The payload validated, but it started a nested module or component.

This result indicates that the specified parser should be used instead of the currently-used parser until this returned one ends.

§

Func(FuncValidator<ValidatorResources>, FunctionBody<'a>)

A function was found to be validate.

§

End(Types)

The end payload was validated and the types known to the validator are provided.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.