pub trait TypeName: Send + Sync {
    // Required method
    fn type_name() -> Cow<'static, str>;
}
Expand description

Used to specify the GraphQL Type name.

Required Methods§

source

fn type_name() -> Cow<'static, str>

Returns a GraphQL type name.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Cursor, Node, ConnectionFields, EdgeFields, Name, EdgeName, NodesField> TypeName for Connection<Cursor, Node, ConnectionFields, EdgeFields, Name, EdgeName, NodesField>where Cursor: CursorType + Send + Sync, Node: OutputType, ConnectionFields: ObjectType, EdgeFields: ObjectType, Name: ConnectionNameType, EdgeName: EdgeNameType, NodesField: NodesFieldSwitcherSealed,

source§

impl<Cursor, Node, EdgeFields, Name> TypeName for Edge<Cursor, Node, EdgeFields, Name>where Cursor: CursorType + Send + Sync, Node: OutputType, EdgeFields: ObjectType, Name: EdgeNameType,