IntoValue

Trait IntoValue 

Source
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§

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

Source§

impl IntoValue for bool

Source§

impl IntoValue for char

Source§

impl IntoValue for f32

Source§

impl IntoValue for f64

Source§

impl IntoValue for i8

Source§

impl IntoValue for i16

Source§

impl IntoValue for i32

Source§

impl IntoValue for i64

Source§

impl IntoValue for u8

Source§

impl IntoValue for u16

Source§

impl IntoValue for u32

Source§

impl IntoValue for u64

Source§

impl IntoValue for String

Source§

impl IntoValue for Duration

Source§

impl IntoValue for Instant

Source§

impl IntoValue for BigDecimal

Source§

impl IntoValue for BitVec

Source§

impl IntoValue for DateTime<Utc>

Source§

impl IntoValue for NaiveDate

Source§

impl IntoValue for NaiveDateTime

Source§

impl IntoValue for NaiveTime

Source§

impl IntoValue for Url

Source§

impl IntoValue for Uuid

Source§

impl<A: IntoValue, B: IntoValue> IntoValue for (A, B)

Source§

impl<A: IntoValue, B: IntoValue, C: IntoValue> IntoValue for (A, B, C)

Source§

impl<E: IntoValue> IntoValue for Result<(), E>

Source§

impl<K: IntoValue, V: IntoValue> IntoValue for BTreeMap<K, V>

Source§

impl<K: IntoValue, V: IntoValue> IntoValue for HashMap<K, V>

Source§

impl<S: IntoValue> IntoValue for Result<S, ()>

Source§

impl<S: IntoValue, E: IntoValue> IntoValue for Result<S, E>

Source§

impl<T: IntoValue> IntoValue for Bound<T>

Source§

impl<T: IntoValue> IntoValue for Option<T>

Source§

impl<T: IntoValue> IntoValue for Box<T>

Source§

impl<T: IntoValue> IntoValue for BTreeSet<T>

Source§

impl<T: IntoValue> IntoValue for Vec<T>

Implementors§

Source§

impl IntoValue for AnalysedType

Available on crate feature host only.
Source§

impl IntoValue for ResourceMode

Available on crate feature host only.
Source§

impl IntoValue for RpcError

Available on crate feature host only.
Source§

impl IntoValue for Value

Available on crate feature host only.
Source§

impl IntoValue for WitNode

Available on crate feature host only.
Source§

impl IntoValue for WitTypeNode

Available on crate feature host only.
Source§

impl IntoValue for NamedWitTypeNode

Available on crate feature host only.
Source§

impl IntoValue for Uri

Available on crate feature host only.
Source§

impl IntoValue for ValueAndType

Available on crate feature host only.
Source§

impl IntoValue for WitType

Available on crate feature host only.
Source§

impl IntoValue for WitValue

Available on crate feature host only.