pub struct TextEntryComponent {
pub label: String,
pub content: String,
pub open: f64,
pub label_reveal: f64,
pub content_reveal: f64,
pub visible: bool,
}Fields§
§label: String§content: String§open: f64§label_reveal: f64§content_reveal: f64§visible: boolImplementations§
Source§impl TextEntryComponent
impl TextEntryComponent
Sourcepub fn prompt(
label: impl Into<String>,
default_value: impl Into<String>,
) -> Self
pub fn prompt( label: impl Into<String>, default_value: impl Into<String>, ) -> Self
Text entry chrome for an env-var style prompt (label = variable name, content = default).
Invisible shell when the step is dialog-only or selector-only (no editable field).
pub fn render_with_cursor<W: Write, R: Rng>( &self, writer: &mut W, layout: &TextEntryLayout, tw: u16, buf: &InputBuffer, rng: &mut R, ) -> Result<u16>
pub fn render_partial_open<W: Write>( &self, writer: &mut W, layout: &TextEntryLayout, tw: u16, ) -> Result<()>
Trait Implementations§
Source§impl Clone for TextEntryComponent
impl Clone for TextEntryComponent
Source§fn clone(&self) -> TextEntryComponent
fn clone(&self) -> TextEntryComponent
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 moreAuto Trait Implementations§
impl Freeze for TextEntryComponent
impl RefUnwindSafe for TextEntryComponent
impl Send for TextEntryComponent
impl Sync for TextEntryComponent
impl Unpin for TextEntryComponent
impl UnsafeUnpin for TextEntryComponent
impl UnwindSafe for TextEntryComponent
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