Expand description
This library provides a basic API for serializing / deserializng xmlrpc. Combine with your transport or server of choice for an easy and quick xmlrpc experience.
Structs§
- Fault
- A
<fault>
response, indicating that a request failed.
Enums§
- Error
- Errors that can occur when trying to perform an XML-RPC request.
- Value
- Represents any single valid xmlrpc “Value”
Functions§
- from_
value - Attempts to deserialize the Value into the given type, equivalent API of serde_json::from_value.
- from_
values - Attempts to convert a Vec of values to any data type which can be deserialized. This is typically used with request_from_str to implement server behavior:
- request_
from_ str - Expects an input string which is a valid xmlrpc request body, and parses out the method name and parameters from it. This function would typically be used by a server to parse incoming requests.
- request_
to_ string - Takes in the name of a method call and a list of parameters and attempts to convert them to a String which would be a valid body for an xmlrpc request.
- response_
from_ str - Parses the body of an xmlrpc http request and attempts to convert it to the desired type.
- response_
to_ string - Attempt to serialize a xmlrpc response from a list of values. Each item in the list will be represented as a separate “param” in xmlrpc parlance.
- to_
value - Convert a
T
intoserde_xmlrpc::Value
which is an enum that can represent any valid XML-RPC data. - value_
from_ str - Attempts to parse an individual value out of a str.
- value_
to_ string - Attempts to convert any data type which can be represented as an xmlrpc value into a String.