Skip to main content

WorkspaceRecordActions

Trait WorkspaceRecordActions 

Source
pub trait WorkspaceRecordActions {
    // Required methods
    fn apps(&self) -> Vec<String>;
    fn invoke(
        &self,
        app: &str,
        action: &str,
        arguments: Map<String, Value>,
        done: Box<dyn FnOnce(ActionAnswer)>,
    );

    // Provided method
    fn open(&self, url: &str) { ... }
}
Expand description

How a host asks the workspace’s host to run an action of a workspace record for the person, on the web and natively alike.

Required Methods§

Source

fn apps(&self) -> Vec<String>

The apps whose workspace record this workspace holds and may publish the read (READ_ACTION): the workspace’s connectors (connector_apps).

Source

fn invoke( &self, app: &str, action: &str, arguments: Map<String, Value>, done: Box<dyn FnOnce(ActionAnswer)>, )

Ask the workspace’s host to run action on app’s workspace record (its own resource) with arguments, as the person; done gets the answer, later, on this thread.

Provided Methods§

Source

fn open(&self, url: &str)

Go to url (a service’s consent page), leaving this page; it comes back with a link token.

Implementors§