pub fn from_value<T: DeserializeOwned>(value: Value) -> Result<T>Expand description
Attempts to deserialize the Value into the given type, equivalent API of serde_json::from_value.
use serde_xmlrpc::{from_value, Value};
let val = Value::Array(vec![Value::Int(3), Value::String("Test".to_string())]);
let (x, y): (i32, String) = from_value(val).unwrap();