async_graphql

Trait TypeName

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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,