pub struct OptionalValueSyntax {
pub name: Cow<'static, str>,
pub vtype: ExprType,
pub missing_value: i32,
pub present_value: i32,
}
Expand description
Details to compile 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: ExprType
The type of the expected parameter.
missing_value: i32
Value to push onto the stack when the parameter is missing.
present_value: i32
Value to push onto the stack when the parameter is present, after which the stack contains the parameter value.
Trait Implementations§
Source§impl Clone for OptionalValueSyntax
impl Clone for OptionalValueSyntax
Source§fn clone(&self) -> OptionalValueSyntax
fn clone(&self) -> OptionalValueSyntax
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 OptionalValueSyntax
impl RefUnwindSafe for OptionalValueSyntax
impl Send for OptionalValueSyntax
impl Sync for OptionalValueSyntax
impl Unpin 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