pub struct TextInputConfig {
pub fg: Rgb,
pub bg: Rgb,
pub cursor_fg: Rgb,
pub placeholder: String,
pub placeholder_fg: Rgb,
pub prompt: String,
pub prompt_fg: Rgb,
}Expand description
Configuration for the text input widget.
Fields§
§fg: RgbForeground color for text.
bg: RgbBackground color.
cursor_fg: RgbCursor color.
placeholder: StringPlaceholder text shown when empty.
placeholder_fg: RgbPlaceholder text color.
prompt: StringPrompt prefix (e.g., “> “).
prompt_fg: RgbPrompt color.
Trait Implementations§
Source§impl Clone for TextInputConfig
impl Clone for TextInputConfig
Source§fn clone(&self) -> TextInputConfig
fn clone(&self) -> TextInputConfig
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 TextInputConfig
impl Debug for TextInputConfig
Auto Trait Implementations§
impl Freeze for TextInputConfig
impl RefUnwindSafe for TextInputConfig
impl Send for TextInputConfig
impl Sync for TextInputConfig
impl Unpin for TextInputConfig
impl UnwindSafe for TextInputConfig
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