namespace AIStudio.Tools.Rust;
///
/// What became of the page a document was to be shown at, as the runtime reports it.
///
///
/// The runtime names these values in PageOutcome in runtime/src/file_actions.rs. The app tells the user
/// from them why a document opened without its page, so that they know AI Studio could not do otherwise.
///
public enum DocumentPageOutcome
{
/// A value of a newer runtime which the app does not know.
UNKNOWN,
/// The document was handed to its program together with the page.
APPLIED,
/// No page was asked for.
NOT_REQUESTED,
/// AI Studio runs as a Flatpak, whose sandbox lets no page through to the program.
SANDBOXED,
/// The program which shows the document cannot be told a page, or the document is no PDF.
PROGRAM_TAKES_NO_PAGE,
/// The program takes a page, but it could not be started with one.
PROGRAM_FAILED,
/// The document did not open at all.
DOCUMENT_NOT_OPENED
}