feat: add to_value implementation for &str

This commit is contained in:
2025-09-29 08:07:56 +02:00
parent e8cb7d8e53
commit 357296edd6
2 changed files with 11 additions and 0 deletions

View File

@@ -2,5 +2,6 @@ pub mod bool_to_value;
pub mod entity_to_value;
pub mod f64_to_value;
pub mod i64_to_value;
pub mod str_to_value;
pub mod string_to_value;
pub mod u64_to_value;

View File

@@ -0,0 +1,10 @@
use crate::*;
impl ToValue for &str {
fn to_value(self) -> Value {
Value::Text(String::from(self))
}
}
// #[cfg(test)]
// mod unit_tests { use super::*; }