pub struct OpenFileOptions {
pub title: Option<String>,
pub starting_directory: Option<PathBuf>,
pub filters: Vec<DialogFilter>,
pub multiple: bool,
}Expand description
Configuration options for opening files.
Fields§
§title: Option<String>§starting_directory: Option<PathBuf>§filters: Vec<DialogFilter>§multiple: boolImplementations§
Source§impl OpenFileOptions
impl OpenFileOptions
pub fn new() -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_directory(self, directory: impl Into<PathBuf>) -> Self
pub fn with_filter(self, name: impl Into<String>, extensions: &[&str]) -> Self
pub fn with_multiple(self, multiple: bool) -> Self
Trait Implementations§
Source§impl Clone for OpenFileOptions
impl Clone for OpenFileOptions
Source§impl Debug for OpenFileOptions
impl Debug for OpenFileOptions
Auto Trait Implementations§
impl Forget for OpenFileOptions
impl Freeze for OpenFileOptions
impl Move for OpenFileOptions
impl RefUnwindSafe for OpenFileOptions
impl Send for OpenFileOptions
impl Sync for OpenFileOptions
impl Unpin for OpenFileOptions
impl UnsafeUnpin for OpenFileOptions
impl UnwindSafe for OpenFileOptions
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