pub struct AnyValueSyntax {
pub name: Cow<'static, str>,
pub allow_missing: bool,
}Expand description
Syntax specification for a parameter that accepts any scalar type.
Fields§
§name: Cow<'static, str>The name of the parameter for help purposes.
allow_missing: boolWhether 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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnyValueSyntax
impl Debug for AnyValueSyntax
Source§impl PartialEq for AnyValueSyntax
impl PartialEq for AnyValueSyntax
Source§fn eq(&self, other: &AnyValueSyntax) -> bool
fn eq(&self, other: &AnyValueSyntax) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnyValueSyntax
Auto Trait Implementations§
impl Freeze for AnyValueSyntax
impl RefUnwindSafe for AnyValueSyntax
impl Send for AnyValueSyntax
impl Sync for AnyValueSyntax
impl Unpin for AnyValueSyntax
impl UnsafeUnpin 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