Skip to main content

IntoMetadataValue

Trait IntoMetadataValue 

Source
pub trait IntoMetadataValue {
    // Required method
    fn into_metadata_value(self) -> Value;
}
Expand description

Converts supported Rust values into the metadata backing Value type.

This trait is implemented for the same concrete input types accepted by Value::new. It exists so crate::Metadata can keep a generic public API while qubit-value keeps its internal constructor trait private.

Required Methods§

Source

fn into_metadata_value(self) -> Value

Converts this value into a Value without changing its concrete data type.

§Returns

Returns the corresponding Value variant for this input type.

Implementations on Foreign Types§

Source§

impl IntoMetadataValue for &str

Source§

impl IntoMetadataValue for Value

Source§

impl IntoMetadataValue for bool

Source§

impl IntoMetadataValue for char

Source§

impl IntoMetadataValue for f32

Source§

impl IntoMetadataValue for f64

Source§

impl IntoMetadataValue for i8

Source§

impl IntoMetadataValue for i16

Source§

impl IntoMetadataValue for i32

Source§

impl IntoMetadataValue for i64

Source§

impl IntoMetadataValue for i128

Source§

impl IntoMetadataValue for isize

Source§

impl IntoMetadataValue for u8

Source§

impl IntoMetadataValue for u16

Source§

impl IntoMetadataValue for u32

Source§

impl IntoMetadataValue for u64

Source§

impl IntoMetadataValue for u128

Source§

impl IntoMetadataValue for usize

Source§

impl IntoMetadataValue for String

Source§

impl IntoMetadataValue for Duration

Source§

impl IntoMetadataValue for HashMap<String, String>

Source§

impl IntoMetadataValue for BigDecimal

Source§

impl IntoMetadataValue for DateTime<Utc>

Source§

impl IntoMetadataValue for NaiveDate

Source§

impl IntoMetadataValue for NaiveDateTime

Source§

impl IntoMetadataValue for NaiveTime

Source§

impl IntoMetadataValue for BigInt

Source§

impl IntoMetadataValue for Url

Implementors§