[][src]Trait async_graphql::Scalar

pub trait Scalar: Sized + Send {
    fn type_name() -> &'static str;
fn parse(value: Value) -> Option<Self>;
fn parse_from_json(value: Value) -> Option<Self>;
fn to_json(&self) -> Result<Value>; fn description() -> Option<&'static str> { ... } }

Required methods

fn type_name() -> &'static str

fn parse(value: Value) -> Option<Self>

fn parse_from_json(value: Value) -> Option<Self>

fn to_json(&self) -> Result<Value>

Loading content...

Provided methods

fn description() -> Option<&'static str>

Loading content...

Implementations on Foreign Types

impl Scalar for bool[src]

impl Scalar for f32[src]

impl Scalar for f64[src]

impl Scalar for i8[src]

impl Scalar for i16[src]

impl Scalar for i32[src]

impl Scalar for i64[src]

impl Scalar for u8[src]

impl Scalar for u16[src]

impl Scalar for u32[src]

impl Scalar for u64[src]

impl Scalar for String[src]

impl Scalar for DateTime<Utc>[src]

impl Scalar for Uuid[src]

Loading content...

Implementors

impl Scalar for ID[src]

Loading content...