pub fn SaveDocumentAs(
OriginalURI: Url,
NewTargetURI: Option<Url>,
) -> ActionEffect<Arc<dyn DocumentProvider>, CommonError, Option<Url>>Expand description
Creates an effect that, when executed, will save a document to a new location. This is typically used for “Save As…” functionality.
It uses the DocumentProvider capability from the environment to perform
the operation. If NewTargetURI is None, the provider is expected to
interact with the user (via the UserInterfaceProvider) to prompt for a
new save location.
§Parameters
OriginalURI: TheUrlof the document to save.NewTargetURI: An optionalUrlfor the new save location. IfNone, a save dialog should be shown to the user.
§Returns
An ActionEffect that resolves with an Option<Url>, containing the
final Url of the saved file or None if the operation was cancelled.