pub struct ParameterDef {
pub name: String,
pub description: String,
pub param_type: ParameterType,
pub required: bool,
pub default: Option<String>,
}Expand description
Definition of an algorithm parameter.
Fields§
§name: StringParameter name.
description: StringParameter description.
param_type: ParameterTypeParameter type.
required: boolWhether the parameter is required.
default: Option<String>Default value (if any).
Trait Implementations§
Source§impl Clone for ParameterDef
impl Clone for ParameterDef
Source§fn clone(&self) -> ParameterDef
fn clone(&self) -> ParameterDef
Returns a duplicate 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 ParameterDef
impl RefUnwindSafe for ParameterDef
impl Send for ParameterDef
impl Sync for ParameterDef
impl Unpin for ParameterDef
impl UnwindSafe for ParameterDef
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