pub struct FolderPickerOpenOptions { /* private fields */ }Expand description
Options class for the
IStorageProvider::open_folder_picker_async
method.
Implementations§
Source§impl FolderPickerOpenOptions
impl FolderPickerOpenOptions
Sourcepub fn allow_multiple(&self) -> bool
pub fn allow_multiple(&self) -> bool
An option indicating whether the open picker allows users to select multiple folders.
pub fn set_allow_multiple(&mut self, value: bool)
Sourcepub fn with_allow_multiple(self, value: bool) -> Self
pub fn with_allow_multiple(self, value: bool) -> Self
Sets allow_multiple and returns the
options.
Methods from Deref<Target = PickerOptions>§
pub fn set_title(&mut self, value: Option<String>)
Sourcepub fn suggested_start_location(&self) -> Option<&Rc<dyn IStorageFolder>>
pub fn suggested_start_location(&self) -> Option<&Rc<dyn IStorageFolder>>
The initial location where the file open picker looks for files to
present to the user. Can be obtained from previously picked folder
or using IStorageProvider::try_get_folder_from_path_async
or IStorageProvider::try_get_well_known_folder_async.
pub fn set_suggested_start_location( &mut self, value: Option<Rc<dyn IStorageFolder>>, )
Sourcepub fn suggested_file_name(&self) -> Option<&str>
pub fn suggested_file_name(&self) -> Option<&str>
The file name that the file picker suggests to the user.
pub fn set_suggested_file_name(&mut self, value: Option<String>)
Trait Implementations§
Source§impl Clone for FolderPickerOpenOptions
impl Clone for FolderPickerOpenOptions
Source§impl Default for FolderPickerOpenOptions
impl Default for FolderPickerOpenOptions
Source§impl Deref for FolderPickerOpenOptions
impl Deref for FolderPickerOpenOptions
Source§type Target = PickerOptions
type Target = PickerOptions
The resulting type after dereferencing.
Source§fn deref(&self) -> &PickerOptions
fn deref(&self) -> &PickerOptions
Dereferences the value.
Source§impl DerefMut for FolderPickerOpenOptions
impl DerefMut for FolderPickerOpenOptions
Source§fn deref_mut(&mut self) -> &mut PickerOptions
fn deref_mut(&mut self) -> &mut PickerOptions
Mutably dereferences the value.
Source§impl From<PickerOptions> for FolderPickerOpenOptions
impl From<PickerOptions> for FolderPickerOpenOptions
Source§fn from(base: PickerOptions) -> Self
fn from(base: PickerOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FolderPickerOpenOptions
impl !Send for FolderPickerOpenOptions
impl !Sync for FolderPickerOpenOptions
impl !UnwindSafe for FolderPickerOpenOptions
impl Freeze for FolderPickerOpenOptions
impl Unpin for FolderPickerOpenOptions
impl UnsafeUnpin for FolderPickerOpenOptions
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more