pub struct RequiredRefSyntax {
pub name: Cow<'static, str>,
pub require_array: bool,
pub define_undefined: bool,
}
Expand description
Details to compile a required reference parameter.
Fields§
§name: Cow<'static, str>
The name of the parameter for help purposes.
require_array: bool
If true, require an array reference; if false, a variable reference.
define_undefined: bool
If true, allow references to undefined variables because the command will define them when
missing. Can only be set to true for commands, not functions, and require_array
must be
false.
Trait Implementations§
Source§impl Clone for RequiredRefSyntax
impl Clone for RequiredRefSyntax
Source§fn clone(&self) -> RequiredRefSyntax
fn clone(&self) -> RequiredRefSyntax
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RequiredRefSyntax
impl RefUnwindSafe for RequiredRefSyntax
impl Send for RequiredRefSyntax
impl Sync for RequiredRefSyntax
impl Unpin for RequiredRefSyntax
impl UnwindSafe for RequiredRefSyntax
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