ShowSaveDialog

Function ShowSaveDialog 

Source
pub fn ShowSaveDialog(
    Options: Option<SaveDialogOptionsDTO>,
) -> ActionEffect<Arc<dyn UserInterfaceProvider>, CommonError, Option<PathBuf>>
Expand description

Creates an effect that, when executed, will display a native dialog for saving a file.

It uses the UserInterfaceProvider capability from the environment to orchestrate the interaction with the frontend.

§Parameters

  • Options: An Option<SaveDialogOptionsDTO> containing settings for the dialog, such as the title and default path.

§Returns

An ActionEffect that resolves with an Option<PathBuf>, containing the path selected by the user for saving, or None if the dialog was cancelled.