pub struct ParameterDescriptor {
pub name: String,
pub param_type: ParameterType,
pub description: String,
pub additional_constraints: String,
pub read_only: bool,
pub dynamic_typing: bool,
pub range: NumericRange,
}
Expand description
Documentation and constraints for a Parameter
Fields§
§name: String
§param_type: ParameterType
§description: String
§additional_constraints: String
§read_only: bool
§dynamic_typing: bool
§range: NumericRange
Implementations§
Source§impl ParameterDescriptor
impl ParameterDescriptor
pub fn unknown(name: &str) -> Self
pub fn from_value(name: &str, value: &ParameterValue) -> Self
Trait Implementations§
Source§impl From<ParameterDescriptor> for ParameterDescriptor
impl From<ParameterDescriptor> for ParameterDescriptor
Source§fn from(p: ParameterDescriptor) -> ParameterDescriptor
fn from(p: ParameterDescriptor) -> ParameterDescriptor
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParameterDescriptor
impl RefUnwindSafe for ParameterDescriptor
impl Send for ParameterDescriptor
impl Sync for ParameterDescriptor
impl Unpin for ParameterDescriptor
impl UnwindSafe for ParameterDescriptor
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