1 2 3 4 5 6 7 8 9 10 11
use crate::value::Value; use teo_result::Error; impl<'a> TryFrom<&'a Value> for Option<Value> { type Error = Error; fn try_from(value: &'a Value) -> Result<Self, Self::Error> { Ok(Some(value.clone())) } }