[][src]Trait cynic::Scalar

pub trait Scalar: Sized {
    fn decode(value: &Value) -> Result<Self, DecodeError>;
fn encode(&self) -> Result<Value, SerializeError>; }

Required methods

fn decode(value: &Value) -> Result<Self, DecodeError>

fn encode(&self) -> Result<Value, SerializeError>

Loading content...

Implementations on Foreign Types

impl Scalar for i32[src]

impl Scalar for f64[src]

impl Scalar for bool[src]

impl Scalar for String[src]

impl Scalar for Value[src]

Loading content...

Implementors

impl Scalar for Id[src]

Loading content...