pub struct InputOptions<'a> {
pub title: Option<&'a str>,
pub description: Option<&'a str>,
pub min_length: Option<u64>,
pub max_length: Option<u64>,
pub format: Option<InputFormat>,
pub default: Option<&'a str>,
}Expand description
Options for the SessionUi::input convenience method.
Fields§
§title: Option<&'a str>Title label for the input field.
description: Option<&'a str>Descriptive text shown below the field.
min_length: Option<u64>Minimum character length.
max_length: Option<u64>Maximum character length.
format: Option<InputFormat>Semantic format hint.
default: Option<&'a str>Default value pre-populated in the field.
Trait Implementations§
Source§impl<'a> Clone for InputOptions<'a>
impl<'a> Clone for InputOptions<'a>
Source§fn clone(&self) -> InputOptions<'a>
fn clone(&self) -> InputOptions<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for InputOptions<'a>
impl<'a> Debug for InputOptions<'a>
Source§impl<'a> Default for InputOptions<'a>
impl<'a> Default for InputOptions<'a>
Source§fn default() -> InputOptions<'a>
fn default() -> InputOptions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for InputOptions<'a>
impl<'a> RefUnwindSafe for InputOptions<'a>
impl<'a> Send for InputOptions<'a>
impl<'a> Sync for InputOptions<'a>
impl<'a> Unpin for InputOptions<'a>
impl<'a> UnsafeUnpin for InputOptions<'a>
impl<'a> UnwindSafe for InputOptions<'a>
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