pub struct OpenOptions {
pub types: Vec<FileType>,
pub initial_folder: Option<PathBuf>,
pub confirm_label: Option<String>,
pub writable: bool,
}Expand description
How to ask for files to open.
Fields§
§types: Vec<FileType>The kinds the dialog offers; any file when there are none.
initial_folder: Option<PathBuf>Where the dialog starts, where the system takes a folder.
confirm_label: Option<String>The confirming button’s label, where the system takes one.
writable: boolWhether the app may write the files picked. Most systems grant writing to every pick, so this only matters where a pick grants reading alone (Android, the web).
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§impl Debug for OpenOptions
impl Debug for OpenOptions
Source§impl Default for OpenOptions
impl Default for OpenOptions
impl Eq for OpenOptions
Source§impl PartialEq for OpenOptions
impl PartialEq for OpenOptions
impl StructuralPartialEq for OpenOptions
Auto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnsafeUnpin for OpenOptions
impl UnwindSafe for OpenOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.