pub struct Field {
pub id: String,
pub under: String,
pub secret: bool,
pub placeholder: Option<String>,
pub hint: String,
/* private fields */
}Expand description
Text typed in place of a setting’s value.
Fields§
§id: StringWhat the text is for; handed back to SettingsModel::entered.
under: StringThe row it’s typed in.
secret: boolDots instead of the text (a key or password).
placeholder: Option<String>Muted text while it’s empty.
hint: StringThe panel’s hint while it’s open.
Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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