pub trait IntoValue {
// Required methods
fn into_value(self) -> Value;
fn get_type() -> AnalysedType;
}Expand description
Specific trait to convert a type into a pair of Value and AnalysedType.
Required Methods§
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl IntoValue for &str
impl IntoValue for &str
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for bool
impl IntoValue for bool
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for char
impl IntoValue for char
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for f32
impl IntoValue for f32
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for f64
impl IntoValue for f64
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for i16
impl IntoValue for i16
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for i32
impl IntoValue for i32
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for i64
impl IntoValue for i64
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for u16
impl IntoValue for u16
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for u32
impl IntoValue for u32
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for u64
impl IntoValue for u64
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for String
impl IntoValue for String
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for Duration
impl IntoValue for Duration
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for Instant
impl IntoValue for Instant
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for BigDecimal
impl IntoValue for BigDecimal
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for BitVec
impl IntoValue for BitVec
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for DateTime<Utc>
impl IntoValue for DateTime<Utc>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for NaiveDate
impl IntoValue for NaiveDate
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for NaiveDateTime
impl IntoValue for NaiveDateTime
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for NaiveTime
impl IntoValue for NaiveTime
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for Url
impl IntoValue for Url
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl IntoValue for Uuid
impl IntoValue for Uuid
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<A: IntoValue, B: IntoValue> IntoValue for (A, B)
impl<A: IntoValue, B: IntoValue> IntoValue for (A, B)
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<A: IntoValue, B: IntoValue, C: IntoValue> IntoValue for (A, B, C)
impl<A: IntoValue, B: IntoValue, C: IntoValue> IntoValue for (A, B, C)
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<E: IntoValue> IntoValue for Result<(), E>
impl<E: IntoValue> IntoValue for Result<(), E>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<K: IntoValue, V: IntoValue> IntoValue for BTreeMap<K, V>
impl<K: IntoValue, V: IntoValue> IntoValue for BTreeMap<K, V>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<K: IntoValue, V: IntoValue> IntoValue for HashMap<K, V>
impl<K: IntoValue, V: IntoValue> IntoValue for HashMap<K, V>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<S: IntoValue> IntoValue for Result<S, ()>
impl<S: IntoValue> IntoValue for Result<S, ()>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<S: IntoValue, E: IntoValue> IntoValue for Result<S, E>
impl<S: IntoValue, E: IntoValue> IntoValue for Result<S, E>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<T: IntoValue> IntoValue for Bound<T>
impl<T: IntoValue> IntoValue for Bound<T>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<T: IntoValue> IntoValue for Option<T>
impl<T: IntoValue> IntoValue for Option<T>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<T: IntoValue> IntoValue for Box<T>
impl<T: IntoValue> IntoValue for Box<T>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<T: IntoValue> IntoValue for BTreeSet<T>
impl<T: IntoValue> IntoValue for BTreeSet<T>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Source§impl<T: IntoValue> IntoValue for Vec<T>
impl<T: IntoValue> IntoValue for Vec<T>
fn into_value(self) -> Value
fn get_type() -> AnalysedType
Implementors§
impl IntoValue for AnalysedType
Available on crate feature
host only.impl IntoValue for ResourceMode
Available on crate feature
host only.impl IntoValue for RpcError
Available on crate feature
host only.impl IntoValue for Value
Available on crate feature
host only.impl IntoValue for WitNode
Available on crate feature
host only.impl IntoValue for WitTypeNode
Available on crate feature
host only.impl IntoValue for NamedWitTypeNode
Available on crate feature
host only.impl IntoValue for Uri
Available on crate feature
host only.impl IntoValue for ValueAndType
Available on crate feature
host only.impl IntoValue for WitType
Available on crate feature
host only.impl IntoValue for WitValue
Available on crate feature
host only.