Crate serde_xmlrpc

Source
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 into serde_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.

Type Aliases§

Result