juniper

Trait ParseScalarValue

Source
pub trait ParseScalarValue<S = DefaultScalarValue> {
    // Required method
    fn from_str(value: ScalarToken<'_>) -> ParseScalarResult<S>;
}
Expand description

A trait used to convert a ScalarToken into a certain scalar value type

Required Methods§

Source

fn from_str(value: ScalarToken<'_>) -> ParseScalarResult<S>

See the trait documentation

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<Tz, __S> ParseScalarValue<__S> for DateTime<Tz>

Source§

impl<__S> ParseScalarValue<__S> for bool
where __S: ScalarValue,

Source§

impl<__S> ParseScalarValue<__S> for f64
where __S: ScalarValue,

Source§

impl<__S> ParseScalarValue<__S> for i32
where __S: ScalarValue,

Source§

impl<__S> ParseScalarValue<__S> for NaiveDate
where __S: ScalarValue,

Source§

impl<__S> ParseScalarValue<__S> for NaiveDateTime
where __S: ScalarValue,

Source§

impl<__S> ParseScalarValue<__S> for NaiveTime
where __S: ScalarValue,

Source§

impl<__S> ParseScalarValue<__S> for String
where __S: ScalarValue,

Implementors§

Source§

impl<__S> ParseScalarValue<__S> for ID
where __S: ScalarValue,