pub struct InputQuestion {
pub default: Option<String>,
pub validate: Option<String>,
}Expand description
Configuration for a text input question.
Fields§
§default: Option<String>Optional default value.
validate: Option<String>Validation function name (resolved at compile time).
Implementations§
Source§impl InputQuestion
impl InputQuestion
Sourcepub fn with_default(default: impl Into<String>) -> Self
pub fn with_default(default: impl Into<String>) -> Self
Create with a default value.
Sourcepub fn with_validator(validate: Option<String>) -> Self
pub fn with_validator(validate: Option<String>) -> Self
Create with a validator.
Trait Implementations§
Source§impl Clone for InputQuestion
impl Clone for InputQuestion
Source§fn clone(&self) -> InputQuestion
fn clone(&self) -> InputQuestion
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 moreSource§impl Debug for InputQuestion
impl Debug for InputQuestion
Source§impl Default for InputQuestion
impl Default for InputQuestion
Source§fn default() -> InputQuestion
fn default() -> InputQuestion
Returns the “default value” for a type. Read more
Source§impl PartialEq for InputQuestion
impl PartialEq for InputQuestion
impl StructuralPartialEq for InputQuestion
Auto Trait Implementations§
impl Freeze for InputQuestion
impl RefUnwindSafe for InputQuestion
impl Send for InputQuestion
impl Sync for InputQuestion
impl Unpin for InputQuestion
impl UnwindSafe for InputQuestion
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