pub trait IntoValue {
// Required method
fn into_value(self) -> Value;
}Expand description
Convert a Rust value into a Value. The extension point behind
Header::set / append.
§Examples
assert_eq!(120i64.into_value(), Value::Literal("120".to_string()));
assert_eq!("M31".into_value(), Value::Str("M31".to_string()));Required Methods§
Sourcefn into_value(self) -> Value
fn into_value(self) -> Value
The value payload to store.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".