pub struct KeyboardOptions {
pub keyboard_type: KeyboardType,
pub capitalization: KeyboardCapitalization,
pub auto_correct: bool,
pub ime_action: ImeAction,
pub content_type: Option<ContentType>,
}Expand description
The software keyboard a text field asks for: Compose’s KeyboardOptions.
Platforms without a software keyboard ignore everything but the action,
which Enter runs in a single-line field.
Fields§
§keyboard_type: KeyboardType§capitalization: KeyboardCapitalization§auto_correct: boolWhether the keyboard corrects and suggests words. Password keyboards never do.
ime_action: ImeAction§content_type: Option<ContentType>What the field holds, for autofill. Compose sets this through the field’s semantics.
Implementations§
Trait Implementations§
Source§impl Clone for KeyboardOptions
impl Clone for KeyboardOptions
impl Copy for KeyboardOptions
Source§impl Debug for KeyboardOptions
impl Debug for KeyboardOptions
Source§impl Default for KeyboardOptions
impl Default for KeyboardOptions
impl Eq for KeyboardOptions
Source§impl Hash for KeyboardOptions
impl Hash for KeyboardOptions
Source§impl PartialEq for KeyboardOptions
impl PartialEq for KeyboardOptions
impl StructuralPartialEq for KeyboardOptions
Auto Trait Implementations§
impl Freeze for KeyboardOptions
impl RefUnwindSafe for KeyboardOptions
impl Send for KeyboardOptions
impl Sync for KeyboardOptions
impl Unpin for KeyboardOptions
impl UnsafeUnpin for KeyboardOptions
impl UnwindSafe for KeyboardOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more