[][src]Struct wfd::OpenDialogResult

pub struct OpenDialogResult {
    pub selected_file_path: PathBuf,
    pub selected_file_paths: Vec<PathBuf>,
    pub selected_file_type_index: u32,
}

The result of an Open Dialog after the user has selected one or more files (or a folder)

Fields

selected_file_path: PathBuf

The first file path that the user selected. Provided as a convenience for use when FOS_ALLOWMULTISELECT is not enabled. If multiple files are selected this field contains the first selected file path.

selected_file_paths: Vec<PathBuf>

The file paths that the user selected. Will only ever contain a single file path if FOS_ALLOWMULTISELECT is not enabled.

selected_file_type_index: u32

The 1-based index of the file type that was selected in the File Type dropdown

Trait Implementations

impl Debug for OpenDialogResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.