Enum xmlrpc::Value
[−]
[src]
pub enum Value { Int(i32), Bool(bool), String(String), Double(f64), DateTime(DateTime), Base64(Vec<u8>), Struct(BTreeMap<String, Value>), Array(Vec<Value>), }
The possible XML-RPC values.
Variants
Int(i32)
<i4>
or <int>
, 32-bit signed integer.
Bool(bool)
<boolean>
, 0 == false
, 1 == true
.
String(String)
<string>
Double(f64)
<double>
DateTime(DateTime)
<dateTime.iso8601>
, an ISO 8601 formatted date/time value.
Base64(Vec<u8>)
<base64>
, base64-encoded binary data.
Struct(BTreeMap<String, Value>)
<struct>
, a mapping of named values.
Array(Vec<Value>)
<array>
, a list of arbitrary (heterogeneous) values.
Methods
impl Value
[src]
Trait Implementations
impl Debug for Value
[src]
impl PartialEq for Value
[src]
fn eq(&self, __arg_0: &Value) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Value) -> bool
This method tests for !=
.
impl From<i32> for Value
[src]
impl From<bool> for Value
[src]
impl From<String> for Value
[src]
impl From<f64> for Value
[src]
impl From<DateTime> for Value
[src]
fn from(other: DateTime) -> Self
Performs the conversion.