pub struct I16Builder {
pub value: Option<i16>,
pub prompt: String,
}
Expand description
Builder for the type i16
Fields§
§value: Option<i16>
The current value.
prompt: String
The message to show to the user.
Implementations§
Source§impl I16Builder
impl I16Builder
Sourcepub fn new(config: BuildableValueConfig<i16>) -> Self
pub fn new(config: BuildableValueConfig<i16>) -> Self
Make a new instance of the builder.
Trait Implementations§
Source§impl BuildableValue for I16Builder
impl BuildableValue for I16Builder
Source§fn get_subfields(&self, _: &[String]) -> Vec<String>
fn get_subfields(&self, _: &[String]) -> Vec<String>
Whether this value contains itself other values (i.e. it’s a struct).
Source§fn apply(
&mut self,
data: Input,
current_fields: &[String],
) -> Result<(), ChooseError>
fn apply( &mut self, data: Input, current_fields: &[String], ) -> Result<(), ChooseError>
Try to change the inner value using the provided input.
Source§fn get_options(&self, current_fields: &[String]) -> Options
fn get_options(&self, current_fields: &[String]) -> Options
The options to show to the user for setting this value.
Auto Trait Implementations§
impl Freeze for I16Builder
impl RefUnwindSafe for I16Builder
impl Send for I16Builder
impl Sync for I16Builder
impl Unpin for I16Builder
impl UnwindSafe for I16Builder
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