Trait vector_config::ToValue

source ·
pub trait ToValue {
    // Required method
    fn to_value(&self) -> Value;
}
Expand description

A type that can be converted directly to a serde_json::Value. This is used when translating the default value in a Metadata into a schema object.

Required Methods§

source

fn to_value(&self) -> Value

Convert this value into a serde_json::Value. Must not fail.

Implementations on Foreign Types§

source§

impl ToValue for &'static Encoding

source§

fn to_value(&self) -> Value

source§

impl ToValue for SocketAddr

source§

fn to_value(&self) -> Value

source§

impl ToValue for bool

source§

fn to_value(&self) -> Value

source§

impl ToValue for char

source§

fn to_value(&self) -> Value

source§

impl ToValue for f32

source§

fn to_value(&self) -> Value

source§

impl ToValue for f64

source§

fn to_value(&self) -> Value

source§

impl ToValue for i8

source§

fn to_value(&self) -> Value

source§

impl ToValue for i16

source§

fn to_value(&self) -> Value

source§

impl ToValue for i32

source§

fn to_value(&self) -> Value

source§

impl ToValue for i64

source§

fn to_value(&self) -> Value

source§

impl ToValue for isize

source§

fn to_value(&self) -> Value

source§

impl ToValue for u8

source§

fn to_value(&self) -> Value

source§

impl ToValue for u16

source§

fn to_value(&self) -> Value

source§

impl ToValue for u32

source§

fn to_value(&self) -> Value

source§

impl ToValue for u64

source§

fn to_value(&self) -> Value

source§

impl ToValue for ()

source§

fn to_value(&self) -> Value

source§

impl ToValue for usize

source§

fn to_value(&self) -> Value

source§

impl ToValue for String

source§

fn to_value(&self) -> Value

source§

impl ToValue for Duration

source§

fn to_value(&self) -> Value

source§

impl ToValue for PathBuf

source§

fn to_value(&self) -> Value

source§

impl ToValue for StatusCode

source§

fn to_value(&self) -> Value

source§

impl ToValue for Url

source§

fn to_value(&self) -> Value

source§

impl ToValue for NonZeroI8

source§

fn to_value(&self) -> Value

source§

impl ToValue for NonZeroI16

source§

fn to_value(&self) -> Value

source§

impl ToValue for NonZeroI32

source§

fn to_value(&self) -> Value

source§

impl ToValue for NonZeroI64

source§

fn to_value(&self) -> Value

source§

impl ToValue for NonZeroU8

source§

fn to_value(&self) -> Value

source§

impl ToValue for NonZeroU16

source§

fn to_value(&self) -> Value

source§

impl ToValue for NonZeroU32

source§

fn to_value(&self) -> Value

source§

impl ToValue for NonZeroU64

source§

fn to_value(&self) -> Value

source§

impl ToValue for NonZeroUsize

source§

fn to_value(&self) -> Value

source§

impl ToValue for KeyString

source§

fn to_value(&self) -> Value

source§

impl ToValue for NoProxy

source§

fn to_value(&self) -> Value

source§

impl ToValue for TimeZone

source§

fn to_value(&self) -> Value

source§

impl ToValue for Tz

source§

fn to_value(&self) -> Value

source§

impl ToValue for Value

source§

fn to_value(&self) -> Value

source§

impl ToValue for VrlRuntime

source§

fn to_value(&self) -> Value

source§

impl<K, V> ToValue for BTreeMap<K, V>
where K: ToString, V: ToValue,

source§

fn to_value(&self) -> Value

source§

impl<K, V> ToValue for HashMap<K, V>
where K: ToString, V: ToValue,

source§

fn to_value(&self) -> Value

source§

impl<T: ToValue> ToValue for Option<T>

source§

fn to_value(&self) -> Value

source§

impl<T: ToValue> ToValue for Vec<T>

source§

fn to_value(&self) -> Value

source§

impl<TZ> ToValue for DateTime<TZ>
where Self: ToString, TZ: TimeZone,

source§

fn to_value(&self) -> Value

source§

impl<V> ToValue for HashSet<V>
where V: ToValue,

source§

fn to_value(&self) -> Value

source§

impl<V: ToValue> ToValue for BTreeSet<V>

source§

fn to_value(&self) -> Value

Implementors§

source§

impl<I, H> ToValue for Delegated<I, H>
where H: Configurable, Delegated<I, H>: Serialize,

source§

impl<K, V> ToValue for IndexMap<K, V>
where K: ToString, V: ToValue,

source§

impl<V: ToValue> ToValue for IndexSet<V>