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() -> OpenFileOptions
pub fn with_title(self, title: impl Into<String>) -> OpenFileOptions
pub fn with_directory(self, directory: impl Into<PathBuf>) -> OpenFileOptions
pub fn with_filter( self, name: impl Into<String>, extensions: &[&str], ) -> OpenFileOptions
pub fn with_multiple(self, multiple: bool) -> OpenFileOptions
Trait Implementations§
Source§impl Clone for OpenFileOptions
impl Clone for OpenFileOptions
Source§fn clone(&self) -> OpenFileOptions
fn clone(&self) -> OpenFileOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenFileOptions
impl Debug for OpenFileOptions
Source§impl Default for OpenFileOptions
impl Default for OpenFileOptions
Source§fn default() -> OpenFileOptions
fn default() -> OpenFileOptions
Returns the “default value” for a type. Read more
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