pub enum StringHint {
Enum(EnumHint),
File(EnumHint),
GlobalFile(EnumHint),
Dir,
GlobalDir,
Multiline,
Placeholder {
placeholder: String,
},
}
Expand description
Possible hints for strings.
Variants§
Enum(EnumHint)
Hints that an integer, float or string property is an enumerated value to pick in a list.
File(EnumHint)
Hints that a string property is a path to a file.
GlobalFile(EnumHint)
Hints that a string property is an absolute path to a file outside the project folder.
Dir
Hints that a string property is a path to a directory.
GlobalDir
Hints that a string property is an absolute path to a directory outside the project folder.
Multiline
Hints that a string property is text with line breaks.
Placeholder
Hints that a string property should have a placeholder text visible on its input field, whenever the property is empty.
Implementations§
Source§impl StringHint
impl StringHint
pub fn export_info(self) -> ExportInfo
Trait Implementations§
Source§impl Clone for StringHint
impl Clone for StringHint
Source§fn clone(&self) -> StringHint
fn clone(&self) -> StringHint
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for StringHint
impl RefUnwindSafe for StringHint
impl Send for StringHint
impl Sync for StringHint
impl Unpin for StringHint
impl UnwindSafe for StringHint
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