moonrockz/mission-control-contracts/app does not have a README file

    InstanceNameError

    pub(all) suberror InstanceNameError {
    InvalidInstanceName(text~ : String, rule~ : InstanceNameRule)
    } derive(Eq,
    Debug
    ,
    FromJson
    ,
    ToJson
    )

    Raised when a text is not an instance name.

    InstanceNameError::equal

    automatically derived

    InstanceNameError::not_equal

    fn InstanceNameError::not_equal(x : InstanceNameError, y : InstanceNameError) -> Bool
    automatically derived

    InstanceNameError::to_json

    automatically derived

    InstanceNameError::to_repr

    automatically derived

    ProjectIdError

    Raised when a number is not a project ID.

    ProjectIdError::equal

    automatically derived

    ProjectIdError::not_equal

    fn ProjectIdError::not_equal(x : ProjectIdError, y : ProjectIdError) -> Bool
    automatically derived

    ProjectIdError::to_json

    automatically derived

    ProjectIdError::to_repr

    automatically derived

    UnixMillisError

    Raised when a number is not a time.

    UnixMillisError::equal

    automatically derived

    UnixMillisError::not_equal

    fn UnixMillisError::not_equal(x : UnixMillisError, y : UnixMillisError) -> Bool
    automatically derived

    UnixMillisError::to_json

    automatically derived

    UnixMillisError::to_repr

    automatically derived

    AddProject

    The request to add a folder to the project list.

    AddProject::equal

    fn AddProject::equal(AddProject, AddProject) -> Bool
    automatically derived

    AddProject::not_equal

    fn AddProject::not_equal(x : AddProject, y : AddProject) -> Bool
    automatically derived

    AddProject::to_json

    automatically derived

    AddProject::to_repr

    automatically derived

    AddedProject

    The reply to add_project.

    AddedProject::equal

    automatically derived

    AddedProject::not_equal

    fn AddedProject::not_equal(x : AddedProject, y : AddedProject) -> Bool
    automatically derived

    AddedProject::to_json

    automatically derived

    AddedProject::to_repr

    automatically derived

    Addition

    pub(all) enum Addition {
    New
    AlreadyListed
    } derive(Eq,
    Debug
    )

    What add_project did with the folder.

    Addition::equal

    fn Addition::equal(Addition, Addition) -> Bool
    automatically derived

    Addition::not_equal

    fn Addition::not_equal(x : Addition, y : Addition) -> Bool
    automatically derived

    Addition::to_json

    Addition::to_repr

    automatically derived

    AppInfo

    What a server tells about itself.

    AppInfo::equal

    fn AppInfo::equal(AppInfo, AppInfo) -> Bool
    automatically derived

    AppInfo::not_equal

    fn AppInfo::not_equal(x : AppInfo, y : AppInfo) -> Bool
    automatically derived

    AppInfo::to_json

    automatically derived

    AppInfo::to_repr

    automatically derived

    ChosenFolder

    pub(all) struct ChosenFolder {
    path : String?
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    The reply to choose_folder.

    ChosenFolder::equal

    automatically derived

    ChosenFolder::not_equal

    fn ChosenFolder::not_equal(x : ChosenFolder, y : ChosenFolder) -> Bool
    automatically derived

    ChosenFolder::to_json

    automatically derived

    ChosenFolder::to_repr

    automatically derived

    FolderState

    pub(all) enum FolderState {
    Present
    Missing
    } derive(Eq,
    Debug
    )

    Whether the folder of a project exists.

    FolderState::equal

    fn FolderState::equal(FolderState, FolderState) -> Bool
    automatically derived

    FolderState::not_equal

    fn FolderState::not_equal(x : FolderState, y : FolderState) -> Bool
    automatically derived

    FolderState::to_json

    FolderState::to_repr

    automatically derived

    InstanceName

    type InstanceName derive(Eq,
    Debug
    )

    The name of one separate copy of Mission Control, such as stable or review-42. It is safe as the name of a folder.

    InstanceName::InstanceName

    fn InstanceName::InstanceName(text : String) -> InstanceName raise InstanceNameError

    Parses an instance name: 1 to 32 lower-case letters, digits and hyphens, with a letter at the start.

    InstanceName::dev

    The instance of a development build, dev.

    InstanceName::equal

    automatically derived

    InstanceName::not_equal

    fn InstanceName::not_equal(x : InstanceName, y : InstanceName) -> Bool
    automatically derived

    InstanceName::of_channel

    The instance that a build of the channel uses, if the user gives no name.

    InstanceName::to_json

    InstanceName::to_repr

    automatically derived

    InstanceName::to_string

    fn InstanceName::to_string(self : InstanceName) -> String

    InstanceNameRule

    pub(all) enum InstanceNameRule {
    Length
    FirstCharacter
    Characters
    } derive(Eq,
    Debug
    )

    A rule of an instance name.

    InstanceNameRule::equal

    automatically derived

    InstanceNameRule::not_equal

    fn InstanceNameRule::not_equal(x : InstanceNameRule, y : InstanceNameRule) -> Bool
    automatically derived

    InstanceNameRule::to_json

    InstanceNameRule::to_repr

    automatically derived

    Project

    pub(all) struct Project {
    id : ProjectId
    name : String
    parent : String?
    path : String
    folder : FolderState
    added : UnixMillis
    opened : UnixMillis?
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    The details of a project, as the server gives them to each view.

    name, parent and path are text to show, and have no rules here. The server has the rules for a path.

    Project::equal

    fn Project::equal(Project, Project) -> Bool
    automatically derived

    Project::not_equal

    fn Project::not_equal(x : Project, y : Project) -> Bool
    automatically derived

    Project::to_json

    automatically derived

    Project::to_repr

    automatically derived

    ProjectId

    type ProjectId derive(Eq,
    Debug
    )

    The ID of a project in the list of an instance: a whole number from 1.

    ProjectId::ProjectId

    fn ProjectId::ProjectId(value : Int) -> ProjectId raise ProjectIdError

    Makes a project ID from a number that is 1 or more.

    ProjectId::equal

    fn ProjectId::equal(ProjectId, ProjectId) -> Bool
    automatically derived

    ProjectId::not_equal

    fn ProjectId::not_equal(x : ProjectId, y : ProjectId) -> Bool
    automatically derived

    ProjectId::to_int

    fn ProjectId::to_int(self : ProjectId) -> Int

    ProjectId::to_json

    ProjectId::to_repr

    automatically derived

    ShownProject

    A project, and the kind of view that shows it.

    ShownProject::equal

    automatically derived

    ShownProject::not_equal

    fn ShownProject::not_equal(x : ShownProject, y : ShownProject) -> Bool
    automatically derived

    ShownProject::to_json

    automatically derived

    ShownProject::to_repr

    automatically derived

    Stopping

    The server stops.

    Stopping::equal

    fn Stopping::equal(Stopping, Stopping) -> Bool
    automatically derived

    Stopping::not_equal

    fn Stopping::not_equal(x : Stopping, y : Stopping) -> Bool
    automatically derived

    Stopping::to_json

    automatically derived

    Stopping::to_repr

    automatically derived

    Surface

    pub(all) enum Surface {
    Browser
    Desktop
    } derive(Eq,
    Debug
    )

    The kind of a view of the UI.

    Surface::equal

    fn Surface::equal(Surface, Surface) -> Bool
    automatically derived

    Surface::not_equal

    fn Surface::not_equal(x : Surface, y : Surface) -> Bool
    automatically derived

    Surface::open_command

    fn Surface::open_command(self : Surface, instance : InstanceName) -> String

    The command that opens a view of this kind. It names the instance, if that is not stable.

    Surface::to_json

    Surface::to_repr

    automatically derived

    UnixMillis

    type UnixMillis derive(Eq,
    Debug
    )

    A time as the number of milliseconds since 1970-01-01T00:00:00Z.

    The JSON form is a text, such as "1764720000000". This is the form that MoonBit uses for each Int64, because a JSON number can lose digits.

    UnixMillis::UnixMillis

    fn UnixMillis::UnixMillis(value : Int64) -> UnixMillis raise UnixMillisError

    Makes a time from a number of milliseconds that is 0 or more.

    UnixMillis::equal

    fn UnixMillis::equal(UnixMillis, UnixMillis) -> Bool
    automatically derived

    UnixMillis::not_equal

    fn UnixMillis::not_equal(x : UnixMillis, y : UnixMillis) -> Bool
    automatically derived

    UnixMillis::to_int64

    fn UnixMillis::to_int64(self : UnixMillis) -> Int64

    UnixMillis::to_json

    UnixMillis::to_repr

    automatically derived

    add_project

    Adds a folder to the project list.

    app_stopping

    The server stops.

    choose_folder

    Asks the user for a folder in a dialog of the system. Only the window of the desktop app has this command. The server does not have it.

    list_projects

    Gives the projects in the order of the list.

    open_project

    Records that the user opens a project.

    project_shown

    A caller used show_project.

    projects_changed

    The project list changed. The payload is the new list.

    remove_project

    Removes a project from the list. The folder and its files stay.

    server_commands

    let server_commands : ReadOnlyArray[String]

    The names of the commands that the server has.

    show_project

    Tells the views of one kind to show a project.

    wire_name

    fn wire_name(name : String) -> String

    The name of a command or an event between the server and a view: app: and the name. Proton uses the same form.