pub struct OpenFile {
pub title: Option<String>,
pub multiple: bool,
pub directories: bool,
pub filters: Vec<FileFilter>,
pub start_folder: Option<PathBuf>,
}Fields§
§title: Option<String>§multiple: bool§directories: boolChoose folders instead of files.
filters: Vec<FileFilter>§start_folder: Option<PathBuf>The folder the dialog opens in. None, or one that isn’t there,
leaves it to the platform (often the last folder used).
Implementations§
Source§impl OpenFile
impl OpenFile
pub fn new() -> OpenFile
pub fn title(self, title: impl Into<String>) -> OpenFile
pub fn multiple(self) -> OpenFile
pub fn directories(self) -> OpenFile
pub fn filter(self, filter: FileFilter) -> OpenFile
Sourcepub fn start_folder(self, folder: impl Into<PathBuf>) -> OpenFile
pub fn start_folder(self, folder: impl Into<PathBuf>) -> OpenFile
Opens the dialog in folder, e.g. the folder of the file a field
names.
Trait Implementations§
impl StructuralPartialEq for OpenFile
Auto Trait Implementations§
impl Freeze for OpenFile
impl RefUnwindSafe for OpenFile
impl Send for OpenFile
impl Sync for OpenFile
impl Unpin for OpenFile
impl UnsafeUnpin for OpenFile
impl UnwindSafe for OpenFile
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