[−][src]Function wfd::save_dialog
pub fn save_dialog(
params: DialogParams
) -> Result<SaveDialogResult, DialogError>
Displays a Save Dialog using the provided parameters.
Examples
// An entirely default Save File dialog box with no customization let result = wfd::save_dialog(Default::default())?;
// A Save File dialog box with a custom dialog title and file types/// let params = wfd::DialogParams { title: "My custom save file dialog", file_types: vec![("JPG Files", "*.jpg;*.jpeg"), ("PDF Files", "*.pdf")], ..Default::default() }; let result = wfd::save_dialog(params)?;
Errors
If a user cancels the dialog, the UserCancelled
error is returned. The only other kinds of
errors that can be retured are COM HRESULT
failure codes - usually as the result of invalid
combinations of options. These are returned in a HResultFailed
error