pub struct Param {
pub name: String,
pub ty: ParamType,
pub required: bool,
pub variadic: bool,
pub lazy: bool,
}Expand description
One parameter of a builtin.
Fields§
§name: String§ty: ParamType§required: boolFalse when the parameter has a default and may be omitted.
variadic: boolTrue for a trailing parameter that soaks up any number of arguments.
lazy: boolTrue when the argument is passed unevaluated (as a captured Expr),
for intrinsics like request.security that run it in another context.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Param
impl RefUnwindSafe for Param
impl Send for Param
impl Sync for Param
impl Unpin for Param
impl UnsafeUnpin for Param
impl UnwindSafe for Param
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more