Struct respo::dialog::PromptOptions
source · pub struct PromptOptions {
pub backdrop_style: RespoStyle,
pub card_style: RespoStyle,
pub text: Option<String>,
pub button_text: Option<String>,
pub initial_value: Option<String>,
pub multilines: bool,
pub input_style: RespoStyle,
pub validator: Option<PromptValidator>,
}
Expand description
options for prompt dialog
Fields§
§backdrop_style: RespoStyle
inline style for backdrop
card_style: RespoStyle
inline style for card
text: Option<String>
hint to display, defaults input message
text on button
initial_value: Option<String>
initial value of input
multilines: bool
textarea or input
input_style: RespoStyle
inline style for input bix
validator: Option<PromptValidator>
a validation function to check input
Trait Implementations§
source§impl Clone for PromptOptions
impl Clone for PromptOptions
source§fn clone(&self) -> PromptOptions
fn clone(&self) -> PromptOptions
Returns a copy 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 PromptOptions
impl Debug for PromptOptions
source§impl Default for PromptOptions
impl Default for PromptOptions
source§fn default() -> PromptOptions
fn default() -> PromptOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PromptOptions
impl !Send for PromptOptions
impl !Sync for PromptOptions
impl Unpin for PromptOptions
impl !UnwindSafe for PromptOptions
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