pub struct ParameterDef {
pub name: String,
pub param_type: ParameterType,
pub default: Option<Value>,
pub required: bool,
}Expand description
Parameter definition with optional default value
Fields§
§name: StringParameter name
param_type: ParameterTypeParameter type (string, number, boolean, object, array)
default: Option<Value>Default value if not provided
required: boolWhether the parameter is required
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