Trait cynic::schema::NamedType

source ·
pub trait NamedType {
    const NAME: &'static str;
}
Expand description

A marker type with a name.

Required Associated Constants§

source

const NAME: &'static str

The name of this type

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl NamedType for bool

source§

const NAME: &'static str = "Boolean"

source§

impl NamedType for f64

source§

const NAME: &'static str = "Float"

source§

impl NamedType for i32

source§

const NAME: &'static str = "Int"

source§

impl NamedType for String

source§

const NAME: &'static str = "String"

Implementors§

source§

impl NamedType for Id

source§

const NAME: &'static str = "ID"