pub struct ParameterBuilder { /* private fields */ }Expand description
Builder for Parameter.
Implementations§
Source§impl ParameterBuilder
impl ParameterBuilder
Sourcepub fn param_type(self, param_type: ParameterType) -> Self
pub fn param_type(self, param_type: ParameterType) -> Self
Set the parameter type.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the parameter description.
Sourcepub fn enum_value(self, value: Value) -> Self
pub fn enum_value(self, value: Value) -> Self
Add an enum value.
Trait Implementations§
Source§impl Debug for ParameterBuilder
impl Debug for ParameterBuilder
Source§impl Default for ParameterBuilder
impl Default for ParameterBuilder
Source§fn default() -> ParameterBuilder
fn default() -> ParameterBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ParameterBuilder
impl RefUnwindSafe for ParameterBuilder
impl Send for ParameterBuilder
impl Sync for ParameterBuilder
impl Unpin for ParameterBuilder
impl UnwindSafe for ParameterBuilder
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