pub struct AnyValueSyntax {
pub name: Cow<'static, str>,
pub allow_missing: bool,
}
Expand description
Details to compile a parameter of any scalar type.
Fields§
§name: Cow<'static, str>
The name of the parameter for help purposes.
allow_missing: bool
Whether to allow the parameter to not be present or not. Can only be true for commands.
Trait Implementations§
Source§impl Clone for AnyValueSyntax
impl Clone for AnyValueSyntax
Source§fn clone(&self) -> AnyValueSyntax
fn clone(&self) -> AnyValueSyntax
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 AnyValueSyntax
impl RefUnwindSafe for AnyValueSyntax
impl Send for AnyValueSyntax
impl Sync for AnyValueSyntax
impl Unpin for AnyValueSyntax
impl UnwindSafe for AnyValueSyntax
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