Struct validator_types::CustomArgument
source · [−]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
sourceimpl Clone for CustomArgument
impl Clone for CustomArgument
sourcefn clone(&self) -> CustomArgument
fn clone(&self) -> CustomArgument
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more