pub struct Entry {
pub text: Option<String>,
pub entry_text: Option<String>,
pub hide_text: bool,
}
Expand description
Settings for a dialog with a single text input.
Fields§
§text: Option<String>
The body text
entry_text: Option<String>
Label for the entry
hide_text: bool
Prevent word wrap
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn with_entry_text(self, entry_text: impl Into<String>) -> Self
pub fn with_entry_text(self, entry_text: impl Into<String>) -> Self
Prefill the input with the given text.
Sourcepub fn set_hide_text(self) -> Self
pub fn set_hide_text(self) -> Self
Hide the content of the text input, as for a password input.
Trait Implementations§
Source§impl ZenityApplication for Entry
impl ZenityApplication for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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