Struct validator_types::CustomArgument [−][src]
Expand description
This struct stores information about defined custom arguments that will be passed in by the user in the validation step.
Fields
def_span: Span
The span of type definition, this can be used in combination with quote_spanned!
for
better error reporting
arg_type: Type
The type of the argument. This can use 'v_a
as a lifetime but has to be Sized. This
means that the type size has to be known at compile time
arg_access: Option<Expr>
This is the way we can access the value from the provided arguments. This will usually
look something like args.0
.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CustomArgument
impl !Send for CustomArgument
impl !Sync for CustomArgument
impl Unpin for CustomArgument
impl UnwindSafe for CustomArgument
Blanket Implementations
Mutably borrows from an owned value. Read more