Struct xmlrpc::Request
[−]
[src]
pub struct Request<'a> { /* fields omitted */ }
A request to call a procedure.
Methods
impl<'a> Request<'a>
[src]
fn new(name: &'a str) -> Self
Creates a new request to call a function named name
.
By default, no arguments are passed. Use the arg
method to append arguments.
fn arg<T: Into<Value>>(self, name: &'a str, value: T) -> Self
Appends an argument to be passed to the current list of arguments.
fn call(self, client: Client) -> RequestResult
Calls the method using the given Client
.
This will send the request to the /
URL.
Returns a RequestResult
indicating whether the request was sent and processed successfully
(according to the rules of XML-RPC).
fn write_as_xml<W: Write>(&self, fmt: &mut W) -> Result<()>
Formats this Request
as XML.