Skip to main content

Request

Type Alias Request 

Source
pub type Request = RequestEntity;

Aliased Type§

pub struct Request {
    pub service_name: String,
    pub method_name: String,
    pub args_json: Json,
}

Fields§

§service_name: String

Service name portion of the RPC endpoint.

Example: for vfs.lookupItem, this is vfs.

§method_name: String

Method name portion of the RPC endpoint.

Example: for vfs.lookupItem, this is lookupItem.

§args_json: Json

JSON-encoded request arguments.

This is always valid JSON and should be [] when the method has no args.