Update any.rs
This commit is contained in:
parent
39b087e86d
commit
2ec948fdf5
@ -34,7 +34,7 @@ impl ScalarType for Any {
|
|||||||
|
|
||||||
impl Any {
|
impl Any {
|
||||||
/// Parse this `Any` value to T by `serde_json`.
|
/// Parse this `Any` value to T by `serde_json`.
|
||||||
fn parse_value<T: DeserializeOwned>(&self) -> std::result::Result<T, serde_json::Error> {
|
pub fn parse_value<T: DeserializeOwned>(&self) -> std::result::Result<T, serde_json::Error> {
|
||||||
serde_json::from_value(self.to_json().unwrap())
|
serde_json::from_value(self.to_json().unwrap())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user