pub struct Parameter {
pub name: String<MAX_PARAM_NAME_LEN>,
pub value: ParameterValue,
}Expand description
A named parameter with value and optional descriptor
Fields§
§name: String<MAX_PARAM_NAME_LEN>Parameter name
value: ParameterValueParameter value
Implementations§
Source§impl Parameter
impl Parameter
Sourcepub fn new(name: &str, value: ParameterValue) -> Option<Self>
pub fn new(name: &str, value: ParameterValue) -> Option<Self>
Create a new parameter with a value
Sourcepub fn param_type(&self) -> ParameterType
pub fn param_type(&self) -> ParameterType
Get the parameter type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnsafeUnpin for Parameter
impl UnwindSafe for Parameter
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