pub fn SaveDocument(
Uri: Url,
) -> ActionEffect<Arc<dyn DocumentProvider>, CommonError, bool>Expand description
Creates an effect that, when executed, will save the document at the specified URI.
It uses the DocumentProvider capability from the environment to perform
the operation, which involves getting the document’s current content from
the in-memory store and writing it to disk.
§Parameters
Uri: TheUrlof the document to save.
§Returns
An ActionEffect that resolves with a bool indicating whether the save
operation was successful.