Trait ParamValue

Source
pub trait ParamValue<'a> {
    // Required method
    fn as_value(&self) -> Cow<'a, str>;
}
Expand description

A trait representing a parameter value.

Required Methods§

Source

fn as_value(&self) -> Cow<'a, str>

The parameter value as a string.

Implementations on Foreign Types§

Source§

impl ParamValue<'static> for bool

Source§

fn as_value(&self) -> Cow<'static, str>

Source§

impl ParamValue<'static> for f64

Source§

fn as_value(&self) -> Cow<'static, str>

Source§

impl ParamValue<'static> for u64

Source§

fn as_value(&self) -> Cow<'static, str>

Source§

impl ParamValue<'static> for String

Source§

fn as_value(&self) -> Cow<'static, str>

Source§

impl ParamValue<'static> for Date

Source§

fn as_value(&self) -> Cow<'static, str>

Source§

impl ParamValue<'static> for OffsetDateTime

Source§

fn as_value(&self) -> Cow<'static, str>

Source§

impl<'a> ParamValue<'a> for &'a str

Source§

fn as_value(&self) -> Cow<'a, str>

Source§

impl<'a> ParamValue<'a> for &'a String

Source§

fn as_value(&self) -> Cow<'a, str>

Source§

impl<'a> ParamValue<'a> for Cow<'a, str>

Source§

fn as_value(&self) -> Cow<'a, str>

Source§

impl<'a, 'b: 'a> ParamValue<'a> for &'b Cow<'a, str>

Source§

fn as_value(&self) -> Cow<'a, str>

Source§

impl<'a, T> ParamValue<'a> for &'a Vec<T>
where T: ToString,

serialize a &Vec<T> where T implements ToString as a string of comma-separated values

Source§

fn as_value(&self) -> Cow<'a, str>

Source§

impl<T> ParamValue<'static> for Vec<T>
where T: ToString,

serialize a Vec<T> where T implements ToString as a string of comma-separated values

Source§

fn as_value(&self) -> Cow<'static, str>

Implementors§