Function librclone::rpc [−][src]
pub fn rpc<S1: Into<String>, S2: Into<String>>(
method: S1,
input: S2
) -> Result<String, String>
Expand description
Does a single librclone RPC call.
method
: e.g.operations/list
, from https://rclone.org/rc/#supported-commandsinput
: a serialized JSON object.- Return value (
Ok
orErr
) is a serialized JSON String.