[][src]Trait async_graphql::GQLScalar

pub trait GQLScalar: Sized + Send {
    fn type_name() -> &'static str;
fn parse(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 to_json(&self) -> Result<Value>

Loading content...

Provided methods

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

Loading content...

Implementations on Foreign Types

impl GQLScalar for bool[src]

impl GQLScalar for f32[src]

impl GQLScalar for f64[src]

impl GQLScalar for i8[src]

impl GQLScalar for i16[src]

impl GQLScalar for i32[src]

impl GQLScalar for i64[src]

impl GQLScalar for u8[src]

impl GQLScalar for u16[src]

impl GQLScalar for u32[src]

impl GQLScalar for u64[src]

impl GQLScalar for String[src]

impl GQLScalar for DateTime<Utc>[src]

impl GQLScalar for Uuid[src]

Loading content...

Implementors

impl GQLScalar for ID[src]

Loading content...