coda_api/ext/
impl_from_for_value.rs

1use crate::types::{Value, ValueVariant0};
2
3impl From<String> for ValueVariant0 {
4    fn from(value: String) -> Self {
5        Self::Variant0(value)
6    }
7}
8
9impl From<String> for Value {
10    fn from(value: String) -> Self {
11        Self::Variant0(value.into())
12    }
13}
14
15impl From<f64> for Value {
16    fn from(value: f64) -> Self {
17        Self::Variant0(value.into())
18    }
19}
20
21impl From<bool> for Value {
22    fn from(value: bool) -> Self {
23        Self::Variant0(value.into())
24    }
25}