pub trait ToValueOptional {
    // Required method
    fn to_value_optional(s: Option<&Self>) -> Value;
}
Expand description

Trait to convert an Option to a Value for optional types.

Required Methods§

fn to_value_optional(s: Option<&Self>) -> Value

Convert an Option to a Value.

Implementations on Foreign Types§

§

impl ToValueOptional for String

§

impl<T> ToValueOptional for &Twhere T: ToValueOptional + StaticType + ?Sized,

§

impl ToValueOptional for str

Implementors§