pub struct OptionalValueSyntax {
pub name: Cow<'static, str>,
pub vtype: ExprType,
}Expand description
Syntax specification for an optional scalar parameter.
Optional parameters are only supported in commands.
Fields§
§name: Cow<'static, str>The name of the parameter for help purposes.
vtype: ExprTypeThe type of the expected parameter.
Trait Implementations§
Source§impl Clone for OptionalValueSyntax
impl Clone for OptionalValueSyntax
Source§fn clone(&self) -> OptionalValueSyntax
fn clone(&self) -> OptionalValueSyntax
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 OptionalValueSyntax
impl Debug for OptionalValueSyntax
Source§impl PartialEq for OptionalValueSyntax
impl PartialEq for OptionalValueSyntax
Source§fn eq(&self, other: &OptionalValueSyntax) -> bool
fn eq(&self, other: &OptionalValueSyntax) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OptionalValueSyntax
Auto Trait Implementations§
impl Freeze for OptionalValueSyntax
impl RefUnwindSafe for OptionalValueSyntax
impl Send for OptionalValueSyntax
impl Sync for OptionalValueSyntax
impl Unpin for OptionalValueSyntax
impl UnsafeUnpin for OptionalValueSyntax
impl UnwindSafe for OptionalValueSyntax
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