diff --git a/src/types.rs b/src/types.rs index a4fcc48..e9a4cdb 100644 --- a/src/types.rs +++ b/src/types.rs @@ -100,6 +100,15 @@ impl From<&i64> for Value { } } +impl From for String { + fn from(value: Value) -> Self { + match value { + Value::String(str) => str, + _ => String::default(), + } + } +} + #[derive(Debug, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] pub struct Symbol(pub String);